Re: Winsocks: 10038/WSAENOTSOCK after accept()
- From: "Arkady Frenkel" <arkadyf@xxxxxxxxxxxxxxxx>
- Date: Fri, 14 Sep 2007 06:56:13 +0300
I'm not sure that INVALID_SOCKET was for listening socket, but for working
socket. OP need to check that obviously.
Arkady
"Alexander Nickolov" <agnickolov@xxxxxxxx> wrote in message
news:u9Ey2rj9HHA.1204@xxxxxxxxxxxxxxxxxxxxxxx
Well, of course, but when your listening socket is closed
or doesn't exists altogether, there's no backlog, correct?
Besides, the size of the TCP 3-way handshake backlog
is unrelated to accept as it is called only after the connection
is established. It has effect on how many TCP clients can
be actively connecting simultaneously and is completely
isolated from the server code.
--
=====================================
Alexander Nickolov
Microsoft MVP [VC], MCSD
email: agnickolov@xxxxxxxx
MVP VC FAQ: http://vcfaq.mvps.org
=====================================
"Arkady Frenkel" <arkadyf@xxxxxxxxxxxxxxxx> wrote in message
news:OAIN8ij9HHA.4712@xxxxxxxxxxxxxxxxxxxxxxx
Backlog is property of the server's ( listening ) , not client socket
Arkady
"Alexander Nickolov" <agnickolov@xxxxxxxx> wrote in message
news:e5iySZj9HHA.484@xxxxxxxxxxxxxxxxxxxxxxx
I fail to see how this can relate to an invalid listening socket...
--
=====================================
Alexander Nickolov
Microsoft MVP [VC], MCSD
email: agnickolov@xxxxxxxx
MVP VC FAQ: http://vcfaq.mvps.org
=====================================
"Arkady Frenkel" <arkadyf@xxxxxxxxxxxxxxxx> wrote in message
news:uIQAopb9HHA.5424@xxxxxxxxxxxxxxxxxxxxxxx
Check maybe that problem connected to backlog, only 5 allowered in
client Os (XP/Vista ) opposite to 200 in Server's Os
Arkady
"Moritz Armingeon" <armingeon@xxxxxxxxx> wrote in message
news:97f40$46e6fdf1$4d38fd17$15743@xxxxxxxxxxxxxxxxxx
Hello!
I'm running a webserver for a webservice. It's written in unmanaged
C++. On high a frequency of connections, maybe 20 per second, it
becomes unstable.
accept() on a new client socket returns INVALID_SOCKET and
WSAGetLastError() returns 10038.
With lower frequencies, the webserver stays stable though. What could
be the cause of such an bevavior? Maybe local socket limitations?
Netstat lists many sockets in state TIMED_WAIT.
Regards, Moritz
.
- Follow-Ups:
- Re: Winsocks: 10038/WSAENOTSOCK after accept()
- From: Alexander Nickolov
- Re: Winsocks: 10038/WSAENOTSOCK after accept()
- References:
- Winsocks: 10038/WSAENOTSOCK after accept()
- From: Moritz Armingeon
- Re: Winsocks: 10038/WSAENOTSOCK after accept()
- From: Arkady Frenkel
- Re: Winsocks: 10038/WSAENOTSOCK after accept()
- From: Alexander Nickolov
- Re: Winsocks: 10038/WSAENOTSOCK after accept()
- From: Arkady Frenkel
- Re: Winsocks: 10038/WSAENOTSOCK after accept()
- From: Alexander Nickolov
- Winsocks: 10038/WSAENOTSOCK after accept()
- Prev by Date: Re: modify the online Http GET request
- Next by Date: Re: searching another computer
- Previous by thread: Re: Winsocks: 10038/WSAENOTSOCK after accept()
- Next by thread: Re: Winsocks: 10038/WSAENOTSOCK after accept()
- Index(es):
Relevant Pages
|
|