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
net: add tryRead() method to Conn #29947
Comments
Or perhaps a special case of make(chan) which takes io.Reader objects and provides the next readable member via
|
@networkimprov thanks, it's helpful |
@networkimprov and where i can read about special cases? |
And how do i add net.Conn's to such channel? |
Let's take this discussion to golang-nuts. We already have #15735 and I don't see anything new here. |
On my last project i were very discouraged by the feature of test connection for the data is present is absent from language. We needed high perfomance, around 1-2 millions of connections, but we have to look for the third party libraries for epoll/kqueue integration in order to get the way to read and do something with data only when it's arrived, not waiting, such decision was made because even waiting goroutines in this case take around 4-8 GB of wasted memory.
P.S add such thing for tls.conn to.
The text was updated successfully, but these errors were encountered: