Re: socket connect call hangs
- From: Volodymyr Shcherbyna <v_scherbina@xxxxxxxxxxxxxxx>
- Date: Sun, 21 Jun 2009 18:55:51 +0200
Sindhuja wrote:
No, in my test code WSAStartup is not in a loop, it's getting initialized
only once. Also I am not calling WSACleanup inside the loop.
I even tried to trace for leaks using Process explorer, but it looks fine.
We are using this test program with looping over connect call, is just to
reproduce the issue where socket connect call get's blocked.
This problem can also be reproduced even without any iterations, but we
need to leave the system idle for sometime. Also, to re-iterate this issue
happens only on windows 2008 Server itanium machine and it works fine with
other windows platforms.
"Volodymyr Shcherbyna" wrote:
I noticed that you call WsaStartup in a cycle on the same thread.
However, if connect fails, you do not call WsaCleanup and if the loopback
flag is set you continue to loop again calling one more time WSAStartup.
Just a hint, try to call WSAStart just once, in the first line of your
main function. Maybe there is a leak in winsock (just a guess) related to
that. Try and tell us here.
--
Volodymyr M. Shcherbyna, blog: http://www.shcherbyna.com/
(This posting is provided "AS IS" with no warranties, and confers no
rights)
"Sindhuja" <Sindhuja@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:B02A3D0A-0A3E-401E-BBCE-EEC643B30B87@xxxxxxxxxxxxxxxx
Is it a clean machine? I.e., no firewalls, no lsp's installed?
--
Volodymyr M. Shcherbyna, blog: http://www.shcherbyna.com/
(This posting is provided "AS IS" with no warranties, and confers no
rights)
.
- References:
- socket connect call hangs
- From: Sindhuja
- Re: socket connect call hangs
- From: Volodymyr Shcherbyna
- Re: socket connect call hangs
- From: Sindhuja
- socket connect call hangs
- Prev by Date: Re: how to send e-mail using c++?
- Next by Date: Re: how to send e-mail using c++?
- Previous by thread: Re: socket connect call hangs
- Next by thread: DnsQuery()?
- Index(es):
Relevant Pages
|