ruby-protobuf / protobuf

A pure ruby implementation of Google's Protocol Buffers
https://github.com/ruby-protobuf
MIT License
462 stars 101 forks source link

When the Client Type and the Server Type are different it hangs indefinitely #53

Open kidsalsa opened 11 years ago

kidsalsa commented 11 years ago

I was running an active_remote search in a rake task and forgot to set PB_CLIENT_TYPE=Zmq and it would hang indefinitely.

localshred commented 11 years ago

This isn't really an issue that needs solving... we support three different socket types (evented, raw socket, zmq). If you are running a server with one type you should be aware that you should run the client under the same type.

kidsalsa commented 11 years ago

Ya, its up to you. It would be nice if it timed out or something. Adam thought I should put an issue up for this, and I agree it would be nice to have some sort of heads up that there is a mismatch going on.

liveh2o commented 11 years ago

Even if we leave it to the user to determine what the issue is, it's odd that the request never timed out. That's the main reason I suggested opening the issue.

localshred commented 11 years ago

I mean yes, we could add a log line or do a timeout or whatever... I just don't see this as an issue. If you are waiting for a request for 10 minutes, clearly something is wrong.