[protobuf] Timeouts for reading from a CodedInputStream

2010-09-28 Thread Patrick
Background: I've developed a C++ RPC server using protobufs as the IDL. It works great. Thanks for protobufs! Problem: When a client connects to the RPC server, a seperate thread in the server handles the connection and blocks, waiting for data from the client. My message parsing function for

Re: [protobuf] Timeouts for reading from a CodedInputStream

2010-09-28 Thread Evan Jones
On Sep 28, 2010, at 15:33 , Patrick wrote: This is all fine and dandy except when I want to shutdown the server or connection (not client initiated). The ReadTag (as well as the other Read functions) blocks until data is received but I want it to timeout after a specified amount of time. So in