[Gambas-user] Connect hang with latest revision

Benoît Minisini gambas at ...1...
Mon Jun 3 20:38:10 CEST 2013


Le 03/06/2013 09:39, Caveat a écrit :
> Strangely enough, I had a similar problem with sockets in python.
> Turned out that the problem was caused by setting the timeout value on a
> socket, *then* setting the blocking mode.  It seems as if the underlying
> socket 'loses' the timeout value (I actually discovered it when creating
> a help function that showed the state of the socket) when you set the
> blocking mode.
>
> I was seeing the same symptoms as you, I had the timeout set (or so I
> thought!) to 10 seconds and the socket would take more than 2 minutes to
> time out...
>
> I presume under Gambas you have the same possibility to set 'blocking'
> sockets (synchronous) and 'non-blocking' (asynchronous) sockets and to
> set a user-defined timeout value.
>
> Please do try first setting the socket to blocking (synchronous) mode,
> THEN setting the timeout value!
>
> Kind regards,
> Caveat
>

Huh, really? Weird!

I will try to fix that...

-- 
Benoît Minisini




More information about the User mailing list