Re: [Gambas-user] Connect hang with latest revision

2013-06-08 Thread Benoît Minisini
Le 07/06/2013 09:52, Ron a écrit : > I just checked, gambas2 didn't/doesn't respect timeout either in this > case when a hiost cannot be reached. > And reports after 2+ minutes. > So it was always like this, maybe because of the fact that it was > difficult to implement? > > Regards, > Ron. > I ha

Re: [Gambas-user] Connect hang with latest revision

2013-06-07 Thread Ron
I just checked, gambas2 didn't/doesn't respect timeout either in this case when a hiost cannot be reached. And reports after 2+ minutes. So it was always like this, maybe because of the fact that it was difficult to implement? Regards, Ron. > Thanks. > The blocking mode issue is not that bad, s

Re: [Gambas-user] Connect hang with latest revision

2013-06-06 Thread Ron
Thanks. The blocking mode issue is not that bad, since I always want to use non-blocking mode anyway, my project is too big to be interupted by sockets. About the timeout I thought gambas2 did this correctly, but I'm not sure now, since the ClientSocket example uses a timer to remove Socket if i

Re: [Gambas-user] Connect hang with latest revision

2013-06-06 Thread Caveat
Hmmm... well I've taken a quick glance at the source and the documentation (Shock news! Developer looks at documentation!!!) and it looks like it's less simple than we thought. When making a connection, it seems as if Gambas insists on using Blocking mode True internally, there is no storage or

Re: [Gambas-user] Connect hang with latest revision

2013-06-04 Thread Ron
I tried it, without specifying .Blocking or .Timeout the _Error event is still triggered after +2 minutes. With specified .Timeout = 10 * 1000 (10secs) the same, after +2 minutes. When specifying .Blocking (either True or False) you get this directly when opening: Error: Stream is closed Regard

Re: [Gambas-user] Connect hang with latest revision

2013-06-03 Thread Benoît Minisini
Le 02/06/2013 17:05, Ron a écrit : > Bug #1 and Bug #2 are fixed, thanks for that! > > The time it takes for Event_Error to trigger is still more than 2 minutes. > I see that in ClientSocket there is a 10sec timer running which cuts > the socket if still not connected. > > Is this the way it should

Re: [Gambas-user] Connect hang with latest revision

2013-06-03 Thread Benoît Minisini
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 actua

Re: [Gambas-user] Connect hang with latest revision

2013-06-03 Thread Caveat
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 fu

Re: [Gambas-user] Connect hang with latest revision

2013-06-02 Thread Ron
Bug #1 and Bug #2 are fixed, thanks for that! The time it takes for Event_Error to trigger is still more than 2 minutes. I see that in ClientSocket there is a 10sec timer running which cuts the socket if still not connected. Is this the way it should be implemented, what about the TimeOut propert

Re: [Gambas-user] Connect hang with latest revision

2013-06-01 Thread Benoît Minisini
Le 01/06/2013 10:33, Ron a écrit : > Benoit, > > It seems to be a Gambas3 thing all along... not latest revisions... > but I didn't see this until I specified a wrong IP address to connect > too in my project. > Also on the Raspberry Pi I saw this earlier, thinking... man that's a > slow device, no

Re: [Gambas-user] Connect hang with latest revision

2013-06-01 Thread Ron
Benoit, It seems to be a Gambas3 thing all along... not latest revisions... but I didn't see this until I specified a wrong IP address to connect too in my project. Also on the Raspberry Pi I saw this earlier, thinking... man that's a slow device, now I know Gambas socket blocks everything when a

Re: [Gambas-user] Connect hang with latest revision

2013-05-30 Thread Benoît Minisini
Le 30/05/2013 20:56, Ron a écrit : > Strange i updated two machines and they both hang at startup trying to > connect to a tcp socket. > Will downgrade tomorrow and try to isolate it. > > Regards, > Ron_2nd Do you have the old revision number before the hang? -- Benoît Minisini

Re: [Gambas-user] Connect hang with latest revision

2013-05-30 Thread Ron
Strange i updated two machines and they both hang at startup trying to connect to a tcp socket. Will downgrade tomorrow and try to isolate it. Regards, Ron_2nd Op 30 mei 2013 20:45 schreef "Benoît Minisini" het volgende: > Le 30/05/2013 20:08, Ron a écrit : > > Did something change in the latest

Re: [Gambas-user] Connect hang with latest revision

2013-05-30 Thread Benoît Minisini
Le 30/05/2013 20:08, Ron a écrit : > Did something change in the latest 10 revisions trunk regarding socket > connects? > > I upgraded my Gambas3 to latest rev, and now my project hangs when starting. > > this is the first part of the gdb bt: > 0x7fffc6ffe000 > 0x7f8a61c0dfdd in connect () at