graceful socket close
- From: vstots@xxxxxxxxx
- Date: 8 Aug 2005 00:23:57 -0700
Hello,
I would like to make sure that after calling closesocket(), Winsock
will not do the FIN/FIN-ACKs in the background, and I would like it to
block.
As written in the MSDN I did the following:
1. Set my (blocking) socket to SO_LINGER with a timeout
2. Called shutdown()
3. Call closesocket
I would expect closesocket to block until the graceful socket closure
is ended, however closesocket returns immediatly before the final close
(When blocking communication right after closesocket returns, the
socket is in LAST_ACK state in netstat).
I've also tried using WSAEventSelect and wait on FD_CLOSE event, and it
did not help either.
Does anyone have an idea?
Thanks!
Ran
.
- Follow-Ups:
- Re: graceful socket close
- From: Arkady Frenkel
- Re: graceful socket close
- Prev by Date: Re: How to popup Windows proxy setting
- Next by Date: Re: to find ip of all systems in a network
- Previous by thread: to find ip of all systems in a network
- Next by thread: Re: graceful socket close
- Index(es):
Relevant Pages
|