Re: socket connect call hangs



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)

.



Relevant Pages

  • Re: Memory leak with Inline::C
    ... Also sprach Anno Siegel: ... > binary representation of the argument), but the loop leaks. ... > the loop runs out. ... > void by_inline(int x) { ...
    (comp.lang.perl.misc)
  • Re: Leak after using setlocale
    ... >escalate in the process tab of task manager (if you have the Memeory ... After increasing your loop limit from 100 to 1000000, ... and dumping leaks around it reveals no leaks at all; ... normal block at 0x00324500, 512 bytes long. ...
    (microsoft.public.vc.stl)
  • Re: socket connect call hangs
    ... No, in my test code WSAStartup is not in a loop, it's getting initialized ... Also I am not calling WSACleanup inside the loop. ...
    (microsoft.public.win32.programmer.networks)
  • Re: Memory leak - What the ...?
    ... > mosteo@gmail.com writes: ... Gnatmem shows that it leaks heavily. ... package body Test_Aux is ... for I in Arr'Range loop ...
    (comp.lang.ada)
  • Re: automation error
    ... Although there are leaks when using any iterative loop with Outlook objects ... The problem is that Outlook creates internal variables for ... MAPITable and that's not only faster but has fewer memory leaks. ...
    (microsoft.public.office.developer.outlook.vba)

Quantcast