Re: timeout for connect()

2016-02-02 Fir de Conversatie tyru
Hi list. On Tue, Feb 2, 2016 at 8:38 PM, Bram Moolenaar wrote: > > Yasuhiro Matsumoto wrote: > >> > > connect() doesn't have timeout. So when server is down, connect() >> > > hangs while 1 or 2 minuts. Below is a patch to add timeout query like >> > > URL. >> > > >> > > connect("localhost:12345

Re: timeout for connect()

2016-02-02 Fir de Conversatie Bram Moolenaar
Yasuhiro Matsumoto wrote: > > > connect() doesn't have timeout. So when server is down, connect() > > > hangs while 1 or 2 minuts. Below is a patch to add timeout query like > > > URL. > > > > > > connect("localhost:12345?timeout=3") > > > > > > https://gist.github.com/mattn/867a635e14ac23606

Re: timeout for connect()

2016-02-01 Fir de Conversatie mattn
On Tuesday, February 2, 2016 at 6:35:07 AM UTC+9, Bram Moolenaar wrote: > Yasuhiro Matsumoto wrote: > > > connect() doesn't have timeout. So when server is down, connect() > > hangs while 1 or 2 minuts. Below is a patch to add timeout query like > > URL. > > > > connect("localhost:12345?timeout

Re: timeout for connect()

2016-02-01 Fir de Conversatie Bram Moolenaar
Yasuhiro Matsumoto wrote: > connect() doesn't have timeout. So when server is down, connect() > hangs while 1 or 2 minuts. Below is a patch to add timeout query like > URL. > > connect("localhost:12345?timeout=3") > > https://gist.github.com/mattn/867a635e14ac2360613a > > But I'm thinking th

timeout for connect()

2016-02-01 Fir de Conversatie mattn
Hi list. connect() doesn't have timeout. So when server is down, connect() hangs while 1 or 2 minuts. Below is a patch to add timeout query like URL. connect("localhost:12345?timeout=3") https://gist.github.com/mattn/867a635e14ac2360613a But I'm thinking there is another ways to specify {tim