[protobuf] CodedInputStream hanging in constructor

2010-02-25 Thread Patrick
When I construct a new CodedInputStream: this-fd = sock.impl()-sockfd(); ZeroCopyInputStream *raw_input = new FileInputStream(this-fd); this-input = new CodedInputStream(raw_input); It hangs in the constructor. I ran a backtrace and can see that it is hanging in the

Re: [protobuf] CodedInputStream hanging in constructor

2010-02-25 Thread Kenton Varda
Weird, read() on a socket should return as soon as *any* data is available, not wait until the entire buffer can be filled. Have you set some unusual flags on your socket which may be causing it to behave this way? On Thu, Feb 25, 2010 at 5:20 PM, Patrick schultz.patr...@gmail.com wrote: When