TCP Queue (Backlog)

Gavin Landon <[email protected]> Fri, 4 Jan 2008 02:11:42 -0600
Newsgroups gmane.comp.windows.devel.dotnet.cx
Message-ID <002901c84ea9$710e9600$55428846@greenmachine>
Morning all..

I'm having an issue that I've spent a few days on.   I'm building a web =
server and when I stress tested the server I got great results, but with =
one bad one..  I'm getting a lot of socket errors.   I have the =
following, but this doesn't seem to be working list expected..

IPAddress inputDNS_IP =3D =
Dns.GetHostEntry(this.m_szHost).AddressList[0];
this.svrListener =3D new TcpListener(inputDNS_IP, this.m_lPort);
//setup timeouts..
this.svrListener.Server.ReceiveTimeout =3D 30000;
this.svrListener.Server.SendTimeout =3D 30000;
//start with a backlog "TCP/IP Queue" of 1024
this.svrListener.Start(1024);

I've changed the backlog param in Start() from 1 to 4096 and no matter =
what the value it doesn't seem to queue up the TCP message like =
expected.   Am I missing something?

/*Chizl*/


=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
This list is hosted by DevelopMentor=AE  http://www.develop.com

View archives and manage your subscription(s) at http://discuss.develop.com