-
Notifications
You must be signed in to change notification settings - Fork 153
Description
Hello !
I'm using versions:
netopeer2-2.2.35
sysrepo-3.3.10
libnetconf2-3.5.5
libyang-3.7.8
It seems I sporadically encounter an error with this message:
[ERR]: LN: Session 1: Failed to write reply (would block)
Note that in my case I am running netopeer2 with POLL_IO_TIMEOUT set to 300 because the host is sometimes slow.
https://github.com/search?q=repo%3ACESNET%2Fnetopeer2%20POLL_IO_TIMEOUT&type=code
I noticed, and another person as well, that it seems that increasing the POLL_IO_TIMEOUT causes all the rpcs to be delayed by the POLL_IO_TIMEOUT amount.
From my understand, this should be a timeout, meaning the maximum value before raising an error, not the time between 2 rpcs right ?
Because I tried to increase the value which shouldn't have side effect, but then I have new errors due to this "lock"
Issue seems located around this line, because removing it seems to help in our scenario, but it might no be safe:
libnetconf2/src/session_server.c
Line 1410 in 61fbe73
| if (nc_ps_lock((struct nc_pollsession *)ps, &q_id, __func__)) { |