MultiThread Socket on NT

Cliff Wells logiplexsoftware at earthlink.net
Tue Nov 20 03:18:25 CET 2001


On Friday 16 November 2001 22:02, Neil Beattie wrote:
> The ms documentation says this about sockets
> "Windows NT Server version 4.0 allows a backlog maximum of 200. Windows
> NT Workstation version 4.0 supports only a maximum allowable value of
> 5." Does this not affect the situation?
> Neil.

It seems like it should.  I don't usually read the MS documentation =)  
However, I can say that using NT Porkstation 4 the problem went away when 
I applied SP5.

> > -----Original Message-----
> > From: python-list-admin at python.org
> > [mailto:python-list-admin at python.org]On Behalf Of Cliff Wells
> > Sent: Saturday, November 17, 2001 2:09 AM
> > To: python-list at python.org
> > Subject: Re: MultiThread Socket on NT
> >
> > On Friday 16 November 2001 14:26, David Bolen wrote:
> > > Cliff Wells <logiplexsoftware at earthlink.net> writes:
> > > > Be sure you are using at least SP5.  NT 4 had serious threading
> > > > issues prior to that.
> > >
> > > Do you have any pointers or references to what the problem was? 
> > > I've been using multi-threaded applications (although not a high
> > > density connection server) under NT4 SP4 without any observable
> > > problems.
> >
> > It's been around three or four years since I encountered that, so the
> > details are pretty vague now.... I was writing an instant
> > messaging server
> > that spawned a thread for every incoming connection (not the best
> > way, but
> > it was my first attempt at network programming, multithreading and my
> > first Python program to boot =).  I was stress-testing my server
> > and I had
> > an adjustable parameter limiting the number of threads allowed at any
> > one time.  If I set this higher than, say 20 (highly questionable if
> > that's the number), NT would flake out (I think to the point of BSOD,
> > but I can't
> > recall).  Anyway, without changing any code, applying SP5 fixed it,
> > and I seem to recall that threading was one of the issues addressed in
> > SP5.
> >
> > --
> > Cliff Wells
> > Software Engineer
> > Logiplex Corporation (www.logiplex.net)
> > (503) 978-6726 x308
> > (800) 735-0555 x308
> >
> > --
> > http://mail.python.org/mailman/listinfo/python-list

-- 
Cliff Wells
Software Engineer
Logiplex Corporation (www.logiplex.net)
(503) 978-6726 x308
(800) 735-0555 x308




More information about the Python-list mailing list