[protobuf] Re: Timeouts for reading from a CodedInputStream

2010-09-28 Thread Patrick
Thanks Evan. I don't really want to buy the cow to get a glass of milk. I also have the problem that the RPC I wrote comes in a threaded model and a multi-process model. The multi-process one makes some things a bit harder. I was hoping to utilize a shm mutex to signal termination but this would

[protobuf] Re: Timeouts for reading from a CodedInputStream

2010-09-28 Thread Patrick
Thanks Evan. I don't really want to buy the cow to get a glass of milk. I also have the problem that the RPC I wrote comes in a threaded model and a multi-process model. The multi-process one makes some things a bit harder. I was hoping to utilize a shm mutex to signal termination but this would

Re: [protobuf] Re: Timeouts for reading from a CodedInputStream

2010-09-28 Thread Kenton Varda
Not sure who Ken is, but I don't have much to add here. The protobuf parsing code is not designed for non-blocking I/O (which would be excessively complicated). If you need non-blocking I/O, the only thing you can do is read to a separate buffer, and only invoke the protobuf parser when you've

Re: [protobuf] Re: Timeouts for reading from a CodedInputStream

2010-09-28 Thread Evan Jones
On Sep 28, 2010, at 18:36 , Patrick wrote: I also have the problem that the RPC I wrote comes in a threaded model and a multi-process model. The multi-process one makes some things a bit harder. I was hoping to utilize a shm mutex to signal termination but this would only work if my message

Re: [protobuf] Re: Timeouts for reading from a CodedInputStream

2010-09-28 Thread Kenton Varda
On Tue, Sep 28, 2010 at 5:38 PM, Evan Jones ev...@mit.edu wrote: On Sep 28, 2010, at 18:36 , Patrick wrote: I also have the problem that the RPC I wrote comes in a threaded model and a multi-process model. The multi-process one makes some things a bit harder. I was hoping to utilize a shm

[protobuf] Re: Timeouts for reading from a CodedInputStream

2010-09-28 Thread Patrick
On Sep 28, 6:07 pm, Kenton Varda ken...@google.com wrote: On Tue, Sep 28, 2010 at 5:38 PM, Evan Jones ev...@mit.edu wrote: On Sep 28, 2010, at 18:36 , Patrick wrote: I also have the problem that the RPC I wrote comes in a threaded model and a multi-process model. The multi-process one