Skip to content

Failed to write reply (would block) & POLL_IO_TIMEOUT #561

@Krisscut

Description

@Krisscut

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:

if (nc_ps_lock((struct nc_pollsession *)ps, &q_id, __func__)) {

Metadata

Metadata

Assignees

No one assigned

    Labels

    is:questionIssue is actually a question.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions