Connect fails on embedded XP from second try on (General questions)
Hi!
We've just purchased SSH.Net and now have massive problems with using it on embedded Windows XP. The first connect works, but then every connection request fails. On Windows XP everything works fine.
The exception is thrown in ProxySocket on line base.EndConnect(ar); .
It says Ein Blockierungsvorgang wurde durch einen Aufruf von WSACancelBlockingCall unterbrochen . In english it should be something like A blocking operation has been cancelled by a call of WSACancelBlockingCall .
But that call has been removed in Winsock 2.2 ...
I've written a short test program using Sockets.Socket. But it only opens and closes the socket. There also on eXP everything works fine. So I think there might be recv() hanging...?
Maybe someone's got a clue?
Kind regards,
Benjamin Lukner
Re: Connect fails on embedded XP from second try o
Blucoder,
I think quick workaround would be to get yourself new instance of wodSSH.NET for each new Connect you make. Can you try that?
As for fixing the problem, any chance we could duplicate it?
Kreso
Re: Connect fails on embedded XP from second try o
Hi!
I always create a new instance (disconnect/dispose/set nothing/timer.../new SSH/connect).
But I did something lame...
When adding support to my project for connecting via WeOnlyDO I'd forgotten that the connect() call is made by an extra thread.
I removed that thread and now everything works well.
I wonder what may be different between regular XP and embedded XP that the problem only occurs in the embedded version...
Regards,
Benjamin Lukner