You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi all, I use this crate on receiving live stock quotes from stock exchanges. When the market daily rests for a while and then restarts trading, I could get no data from the zmq connection established before.
It can be fixed by tcp keep alive settings, but I could not find the related function in this crate. Could you help me with it?
The text was updated successfully, but these errors were encountered:
Hey there! I believe it isn't available as of v0.3.3 - as part of the option. Correct me with an example if I'm wrong. Ideally, we want to support something like this:
letmut options = SocketOptions::default();// or a "TCP option"
options.tcp_keepalive(TcpKeepalive{keepalive:1,count:5,idle:1,interval:10,});letmut socket = zeromq::ReqSocket::with_options(options);
socket
.connect("tcp://127.0.0.1:8888").await.expect("Failed to connect");
Hi all, I use this crate on receiving live stock quotes from stock exchanges. When the market daily rests for a while and then restarts trading, I could get no data from the zmq connection established before.
It can be fixed by tcp keep alive settings, but I could not find the related function in this crate. Could you help me with it?
The text was updated successfully, but these errors were encountered: