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 ------------------------------------------------------------------------------ How ServiceNow helps IT people transform IT departments: 1. A cloud service to automate IT design, transition and operations 2. Dashboards that offer high-level views of enterprise services 3. A single system of record for all IT processes http://p.sf.net/sfu/servicenow-d2d-j _______________________________________________ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user