Re: [zeromq-dev] Interrupted System Call: advice to handle it

2012-08-07 Thread Raphael Bauduin
Thanks you both for your feedback. I'll test the more idiomatic code from Bjorn and if it appears to solve my problem, I'll propose it upstream. Raph On Mon, Aug 6, 2012 at 6:00 PM, Andrew Hume wrote: > in any case, don't forget the EAGAIN case > (which seems to be rather more common in MacOS en

Re: [zeromq-dev] Interrupted System Call: advice to handle it

2012-08-06 Thread Andrew Hume
in any case, don't forget the EAGAIN case (which seems to be rather more common in MacOS environments). On Aug 6, 2012, at 8:55 AM, Bjorn Reese wrote: > On 2012-08-06 13:58, Raphael Bauduin wrote: > >> I thought to replace this call (see code at >> https://github.com/zeromq/rbzmq/blob/master/rbz

Re: [zeromq-dev] Interrupted System Call: advice to handle it

2012-08-06 Thread Bjorn Reese
On 2012-08-06 13:58, Raphael Bauduin wrote: > I thought to replace this call (see code at > https://github.com/zeromq/rbzmq/blob/master/rbzmq.c#L1573 ) > > rc = zmq_send (s,&msg, flags); > > by this: > > int do_loop=1; > while ( do_loop>0) { > rc = zmq_send (s,&msg, fla

Re: [zeromq-dev] Interrupted System Call: advice to handle it

2012-08-06 Thread Raphael Bauduin
On Mon, Jul 9, 2012 at 11:40 AM, Raphael Bauduin wrote: > On Wed, Jul 4, 2012 at 5:20 PM, Chuck Remes wrote: >> >> On Jul 4, 2012, at 5:05 AM, Raphael Bauduin wrote: >> >>> Hi, >>> >>> I'm using the ruby zmq bindings in a web application. I regularly get >>> error message "ZMQ::Error: Interrupted

Re: [zeromq-dev] Interrupted System Call: advice to handle it

2012-07-09 Thread Raphael Bauduin
On Wed, Jul 4, 2012 at 5:20 PM, Chuck Remes wrote: > > On Jul 4, 2012, at 5:05 AM, Raphael Bauduin wrote: > >> Hi, >> >> I'm using the ruby zmq bindings in a web application. I regularly get >> error message "ZMQ::Error: Interrupted system call" related to a send. >> This is in a Ruby on Rails app

Re: [zeromq-dev] Interrupted System Call: advice to handle it

2012-07-04 Thread Chuck Remes
On Jul 4, 2012, at 5:05 AM, Raphael Bauduin wrote: > Hi, > > I'm using the ruby zmq bindings in a web application. I regularly get > error message "ZMQ::Error: Interrupted system call" related to a send. > This is in a Ruby on Rails application served with passenger, which > spawns worker proces

[zeromq-dev] Interrupted System Call: advice to handle it

2012-07-04 Thread Raphael Bauduin
Hi, I'm using the ruby zmq bindings in a web application. I regularly get error message "ZMQ::Error: Interrupted system call" related to a send. This is in a Ruby on Rails application served with passenger, which spawns worker processes. I think I have identified a process that generated this erro