comp.lang.ada
 help / color / mirror / Atom feed
From: Laurent Guerby <guerby@acm.org>
Subject: Re: Socket buffer filling up
Date: 1999/11/19
Date: 1999-11-19T20:00:43+00:00	[thread overview]
Message-ID: <86aeoafdsq.fsf@ppp-162-48.villette.club-internet.fr> (raw)
In-Reply-To: 38342539.0@silver.truman.edu

"Chad R. Meiners" <v025@truman.edu> writes:
>     I believe your problem has to do with the fact you are only shutting
> down the socket and not closing it.  You are running out of available
> sockets so either you need to reuse the sockets you have, or you need to use
> the close_socket api form the Winsock api's to release them so other
> programs can allocate sockets.  I have extended Jerry's socket package to
> have this functionality.   E-mail me if you would like this package

I noticed the problem some time ago and notified the Unix and NT
maintainers, they both told me that it would be fixed in the next
release of adasocket.

On Unix, you need to call C_Close (which is in the thin binding),
and on NT as Chad mentionned.

BTW, while we have socket experts on line, I'd like to know if it is
possible to check that the peer on the socket is still here without
having to send data (and thus getting some kind of connection lost)?

Thanks for any insight,

--LG




  reply	other threads:[~1999-11-19  0:00 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-11-18  0:00 Socket buffer filling up Josh Highley
1999-11-18  0:00 ` Josh Highley
1999-11-18  0:00   ` Chad R. Meiners
1999-11-19  0:00     ` Laurent Guerby [this message]
1999-11-19  0:00       ` tmoran
1999-11-18  0:00   ` David C. Hoos, Sr.
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox