Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

libnspv make delays when sending messages, apparently because of buffering #186

Open
dimxy opened this issue May 7, 2021 · 0 comments
Open

Comments

@dimxy
Copy link

dimxy commented May 7, 2021

Tests show that requests via libnspv might perform with delay of several seconds.
Libnspv uses libevent2 library to send/receive messages over net. It looks like libevent2 does buffering internally before actual sending.
I search or something like a flush feature but according to this it is not possible yet:

Currently (as of Libevent 2.0.5-beta), bufferevent_flush() is only implemented for some bufferevent types. In particular, socket-based bufferevents don’t have it. http://www.wangafu.net/~nickm/libevent-book/Ref6_bufferevent.html

Maybe we need to contact libevent2 devs to get more info.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant