Article View: borland.public.cppbuilder.internet.socket
Article #4659Re: Server Socket Problem
From: Bob Gonder
Date: Wed, 12 Jan 2005 21:19
Date: Wed, 12 Jan 2005 21:19
26 lines
2422 bytes
2422 bytes
Remy Lebeau (TeamB) wrote: >"Bob Gonder" wrote in message > >> If this takes an hour to manifest, (one assumes the test program is >> somewhat consistant in tests per second), does it mean the server >> is being a bit slow to release "disconnected" sessions? > >The error has to do with the numer of pending queued connections, not the >number of established connections. When a client connects to a server, the >connection is placed into a queue. When the server calls accept(), a >connection is removed from the queue. When the server begins listening, it >specifies the maximum number of connections can are allowed to be queued at >a time. If the maximum number of clients are already queued, any further >clients will fail to connect until the queue opens up available slots. So then the OP's server is just a tad slower than his testing client, such that over the course of say, a second, the server falls behind by one connection/accept. So after an hour of the que getting deeper and deeper, it finaly fills up. IOW if the server can accept/process 100 connections per second, and the tester sends out 101.... Or if the server pauses for garbage collection, or Windows disk flush, and falls behind.... If this is data gathering, maybe the client could increase the packet size on the next connection after a failure.
Technical Details
Message-ID:
<8o3bu0trq4744vmuh3uft6g6a3bo14i9m6@4ax.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!gatel-ffm!gatel-ffm!194.25.134.126.MISMATCH!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<41e50bd0@newsgroups.borland.com> <41e56c4a$1@newsgroups.borland.com> <ettau0t9ik8a1g2hk39pqsthfuu607810l@4ax.com> <41e580e5$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,9670bce8fe2a64d1 X-Google-Attributes: gid11508e,public X-Google-Language: ENGLISH,ASCII-7-bit From: Bob Gonder <notbg@notmindspring.invalid> Newsgroups: borland.public.cppbuilder.internet.socket Subject: Re: Server Socket Problem Date: Wed, 12 Jan 2005 13:19:05 -0800 Organization: MindSpring Enterprises, Inc. Reply-To: notbg@notmindspring.invalid Message-ID: <8o3bu0trq4744vmuh3uft6g6a3bo14i9m6@4ax.com> References: <41e50bd0@newsgroups.borland.com> <41e56c4a$1@newsgroups.borland.com> <ettau0t9ik8a1g2hk39pqsthfuu607810l@4ax.com> <41e580e5$1@newsgroups.borland.com> X-Newsreader: Forte Agent 1.93/32.576 English (American) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 69.69.91.118 X-Trace: newsgroups.borland.com 1105564745 69.69.91.118 (12 Jan 2005 13:19:05 -0800) Lines: 28 Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!gatel-ffm!gatel-ffm!194.25.134.126.MISMATCH!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail