Re: [asio-users] async_connect calling handler befor connect completed?
Brought to you by:
chris_kohlhoff
From: Christopher K. <ch...@ko...> - 2006-06-15 13:10:09
|
Hi Dimitri, Dimitri E. Prado <dp...@e3...> wrote: > I just started using asio and I am having some trouble with > async_connect and async_handshake on windows ( XP sp2 ) using > asio 0.3.6 . If I call async_handshake from the handler passed > to async_connect I imediatelly get a 10057 ( WSAENOTCONN) > error , if I sleep for a while and call async_handshake all is > fine and Tls handshaking proceeds correctly. This is the code > I am using: I can't see any obvious problems in your code. Have you tried the SSL example programs to see if they also have the problem? I just tried the example from the latest CVS version of asio on my system (also XP SP2, using VC 8.0) and it all worked ok. Cheers, Chris |