Skip to content

Conversation

@Sene4kass
Copy link

Hello, dear developers of async-smux library.
In my project, I used this library to multiplexing streams and I saw an error:
I created a server with MuxBuilder::server() and I used keep_alive_interval 10 seconds. I tested the solution and server after 10 seconds was sending NOP-requests to client with intervals of 0,5 seconds.
In this pull request I decided that problem. The server will now send NOP packets at the interval that was set.

@black-binary
Copy link
Owner

Thank you for the PR! Could AtomicU64 help reduce locking overhead here?

@AJIOB
Copy link
Contributor

AJIOB commented Apr 25, 2025

I think it may be done via dancing with swap or compare_exchange methods, but it should be done as an additional improvement, IMO

@black-binary black-binary merged commit d120186 into black-binary:main Apr 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

3 participants