pebbe / zmq4

A Go interface to ZeroMQ version 4
BSD 2-Clause "Simplified" License
1.17k stars 163 forks source link

Reactor stalls if polling time less than 15ms on linux #84

Open navneetk opened 8 years ago

navneetk commented 8 years ago

I am using a request response server via Router socket. To receive and send on the Router socket I am using a Reactor.

If the time in reactor run is less than 15ms then the send can get delayed by seconds, upto a minute. This happens only on linux machines and is fine on mac.

navneetk commented 8 years ago

I am using version 2eb538b

pebbe commented 8 years ago

Can you provide some details? You can call the method SetVerbose(true) on the reactor before running it to see what is going on.

Why would you use such a short interval?

navneetk commented 8 years ago

I am using a short interval because the request is completed within few 100 microseconds but the response back has to wait for that time duration after which the channels will be processed.

To have low latency I tried to reduce the poll duration, but instead it went erratic and increased the latency.

I will try with the verbose method.

On Fri, May 13, 2016 at 12:22 AM, Peter Kleiweg notifications@github.com wrote:

Can you provide some details? You can call the method SetVerbose(true) on the reactor before running it to see what is going on.

Why would you use such a short interval?

— You are receiving this because you authored the thread. Reply to this email directly or view it on GitHub https://github.com/pebbe/zmq4/issues/84#issuecomment-218851326


Navneet Kumar