WSAENOBUFS on winsock client application



Hello,

I've developed a C++ stream socket client/server application. The
client-side is implemented using winsock 2 overlapped I/O. For each
connection there is a separate thread (there is a maximum of 40
connection being handled). The normal behaviour is quite fine, no
problems. But in some environment where a connection is being broken
from time to time due to a bad dsl connection or something similar I
get the error WSAENOBUFS when calling WSARecv for the first time after
the following connection has been estabilished. I'm sure that the
previous connections are closed well and all pending requests are
terminated, so that there should be no more resources used by the
application.

What may cause this problem ?

Any help appreciated !
regards
.



Relevant Pages

  • RE: reusing TcpClient object
    ... try to create a separate thread for connection which is using a ... > client and I need to send one message per event. ... > the listening application whenever I need to send something. ... the connection process blocks the thread for a ...
    (microsoft.public.dotnet.framework)
  • Re: a problem with Socket
    ... now the problem with the connection is solved: when the server was ... listening and I closed the connection, I didn't call ServerSocket.close, ... I would like not to use a separate thread ...
    (comp.lang.java.programmer)
  • WSAENOBUFS on winsock client application
    ... I've developed a C++ stream socket client/server application. ... client-side is implemented using winsock 2 overlapped I/O. ... connection there is a separate thread (there is a maximum of 40 ... The other parts of the application (client winsock threads) continue ...
    (microsoft.public.win32.programmer.networks)
  • SqlCeConnection closed after calling Open()
    ... Lately I've gotten a strange error: The state of a connection remains closed after calling Open ... If conn Is Nothing Then ... 'Connection state is closed without throwing an exception. ... This is running in a separate thread, but I'm using SyncLock to make sure that only one thread writes to the database. ...
    (microsoft.public.dotnet.framework.compactframework)
  • Re: threading - race condition?
    ... to initialize that connection - and as i'm doing this on ... a webserver any time i update the code i have to restart all those ... Like using a separate thread to create the other 100? ...
    (comp.lang.python)