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
It would be great if it was documented how concurrent requests, especially when Tokio is used, are handled for netlink-proto and also rtnetlink, for that matter. How simultaneous request-response exchanges are handled and dispatched and how event monitoring is done simultaneously with request-response exchanges. It would help to know what we can rely on and what we cannot.
The text was updated successfully, but these errors were encountered:
You should not use single rtnetlink::new_connection() to host simultaneous request-response exchanges. You can only send out request after reply done or error.
Please create multiple rtnetlink::new_connection() for your use case.
For event monitoring, the rtnetlink/examples/ip_monitor.rs can helps.
In theory, rtnetlink crate and kernel code have sequence number to track multiple communication session for a single socket(connection), but I would not suggest so as it might easily overflow the netlink socket buffer especially with BGP routes.
It would be great if it was documented how concurrent requests, especially when Tokio is used, are handled for
netlink-proto
and alsortnetlink
, for that matter. How simultaneous request-response exchanges are handled and dispatched and how event monitoring is done simultaneously with request-response exchanges. It would help to know what we can rely on and what we cannot.The text was updated successfully, but these errors were encountered: