Re: TCP Queue (Backlog)

"Shen, ShunMing" <[email protected]> Fri, 4 Jan 2008 16:57:37 +0800
Newsgroups gmane.comp.windows.devel.dotnet.cx
Message-ID <96D4758223142F4F971511F3B77EA3B0056B85@sha11exchqp004.cn.madm.net>
AcceptTcpClient() will remove TCP message from queue; Do you use it in =
your program ?

-----Original Message-----
From: Discussion relating to the specifics of the C# and Managed C++ =
languages [mailto:[email protected]] On Behalf Of Gavin =
Landon
Sent: 2008=C4=EA1=D4=C24=C8=D5 16:12
To: [email protected]
Subject: [DOTNET-CX] TCP Queue (Backlog)

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(r)  http://www.develop.com

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

=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