Article View: borland.public.cppbuilder.internet.socket
Article #4660Re: Server Socket Problem
From: Remy Lebeau (TeamB)
Date: Wed, 12 Jan 2005 21:58
Date: Wed, 12 Jan 2005 21:58
21 lines
2006 bytes
2006 bytes
"Bob Gonder" <notbg@notmindspring.invalid> wrote in message news:8o3bu0trq4744vmuh3uft6g6a3bo14i9m6@4ax.com... > 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.... I can see those as being valid scenerios to explain the issue. Especially since the OP is using ICS, which is a non-blocking (aka message-based) library. The speed of accepting connections is related to the speed in which new messages can get processed from the message queue. If the application is doing other things, the message processing can be delayed, and thus the server can be slowed down. Gambit
Technical Details
Message-ID:
<41e59cfa$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!newsread.com!news-xfer.newsread.com!logbridge.uoregon.edu!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailReferences:
<41e50bd0@newsgroups.borland.com> <41e56c4a$1@newsgroups.borland.com> <ettau0t9ik8a1g2hk39pqsthfuu607810l@4ax.com> <41e580e5$1@newsgroups.borland.com> <8o3bu0trq4744vmuh3uft6g6a3bo14i9m6@4ax.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: "Remy Lebeau \(TeamB\)" <no.spam@no.spam.com> Newsgroups: borland.public.cppbuilder.internet.socket References: <41e50bd0@newsgroups.borland.com> <41e56c4a$1@newsgroups.borland.com> <ettau0t9ik8a1g2hk39pqsthfuu607810l@4ax.com> <41e580e5$1@newsgroups.borland.com> <8o3bu0trq4744vmuh3uft6g6a3bo14i9m6@4ax.com> Subject: Re: Server Socket Problem Date: Wed, 12 Jan 2005 13:58:00 -0800 Lines: 23 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1409 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409 NNTP-Posting-Host: 68.69.17.41 Message-ID: <41e59cfa$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1105566970 68.69.17.41 (12 Jan 2005 13:56:10 -0800) Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!newsread.com!news-xfer.newsread.com!logbridge.uoregon.edu!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail