🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.internet.socket
Article #4667

Re: Server Socket Problem

#4667
From: Remy Lebeau (TeamB)
Date: Thu, 13 Jan 2005 08:52
29 lines
2022 bytes
"Patrick Wong" <patrickwong@computer.org> wrote in message
news:41e5d556@newsgroups.borland.com...

> The server creates a new thread to accept a client connection.

You said that you are using ICS.  ICS does not use separate threads for each
connection.  Even if it did, though, the server has to call accept() first
for each connection, and that occurs in a different thread than the ones
that are created to service the clients after they connect.  My earlier
comments still stand.

> Now, by "The server can accept only so many connections at a time",
> how many connections then?

That is determined programmably by the server when it begins listening for
connections.  It passes a parameter to listen() to specifies how large the
queue can be.

> Is this a tunable parameter elsewhere?

Use the ListenBacklog property.

> Someone from the ICS user group told that can be a registry setting.

They are mistaken.


Gambit
Technical Details
Message-ID: <41e63652$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!transit.nntp.hccnet.nl!transit1.nntp.hccnet.nl!newsfeed.bit.nl!newsfeed.bit.nl!border1.nntp.ams.giganews.com!border2.nntp.ams.giganews.com!nntp.giganews.com!pe2.news.blueyonder.co.uk!blueyonder!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mail
References: <41e50bd0@newsgroups.borland.com> <41e5d556@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: "Remy Lebeau \(TeamB\)" <no.spam@no.spam.com>
Newsgroups: borland.public.cppbuilder.internet.socket
References: <41e50bd0@newsgroups.borland.com> <41e5d556@newsgroups.borland.com>
Subject: Re: Server Socket Problem
Date: Thu, 13 Jan 2005 00:52:23 -0800
Lines: 31
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: <41e63652$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1105606226 68.69.17.41 (13 Jan 2005 00:50:26 -0800)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!transit.nntp.hccnet.nl!transit1.nntp.hccnet.nl!newsfeed.bit.nl!newsfeed.bit.nl!border1.nntp.ams.giganews.com!border2.nntp.ams.giganews.com!nntp.giganews.com!pe2.news.blueyonder.co.uk!blueyonder!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mail