Skip to content

Support reading with blocking sockets#24

Closed
arb000r wants to merge 1 commit intoHaveFunTrading:mainfrom
arb000r:blocking-sockets-read-support
Closed

Support reading with blocking sockets#24
arb000r wants to merge 1 commit intoHaveFunTrading:mainfrom
arb000r:blocking-sockets-read-support

Conversation

@arb000r
Copy link
Contributor

@arb000r arb000r commented Jan 30, 2026

Hello,

Back with a change that would aid a little bit of local development support on macOS.
I understand that boomnet is not intended to be used with blocking sockets, and probably definitely not with macOS, and if you feel that this change is against the spirit of the crate, feel free to close.

This change adjusts the complete_io function to remedy blocking sockets stalling during the read process.

I thought maybe a feature would be more appropriate compared to use the target_os flag.

@HaveFunTrading
Copy link
Owner

hi @arb000r

the issue is with tls stream implementation for rustls backed. If you switch to openssl backend you can use it with a blocking socket.

I will look to address this bug when I have some more time, I think your PR is already trying to fix it.

@HaveFunTrading
Copy link
Owner

This has now been fixed in 0.0.76. Let me know if you still experience any issue.

@arb000r
Copy link
Contributor Author

arb000r commented Feb 4, 2026

thanks!

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

Successfully merging this pull request may close these issues.

2 participants