You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Connecting to the resulting listener with telnet and issuing a send synch command, I expect to see "Received" in the output and for the the program to terminate. Instead, the stream.ready() future never completes.
At present, TcpListener::accept() ends up calling PollEvented::new() via TcpStream::new(), which registers Interest::READABLE and Interest::WRITABLE explicitly, but does not provide for Interest::PRIORITY.
AsyncFd provides a with_interest() function to allow for asking for Interest::PRIORITY; should there similarly be an accept_with_interest() on TcpListener to forward to TcpStream, coupled with a connect_with_interest() on TcpStream for the other direction?
The text was updated successfully, but these errors were encountered:
With the addition of Interest::PRIORITY, it is possible to ask `ready()`
to wake on urgent data. However, because `PollEvented` is set up with
only read/write interest, `ready()`'s future will never complete.
Add support for specifying custom interest in the creation of
`PollEvented` to allow `ready()` to correctly poll for urgent.
Fixes: tokio-rs#5784
With the addition of Interest::PRIORITY, it is possible to ask `ready()`
to wake on urgent data. However, because `PollEvented` is set up with
only read/write interest, `ready()`'s future will never complete.
Add support for specifying custom interest in the creation of
`PollEvented` to allow `ready()` to correctly poll for urgent.
Fixes: tokio-rs#5784
With the addition of Interest::PRIORITY, it is possible to ask `ready()`
to wake on urgent data. However, because `PollEvented` is set up with
only read/write interest, `ready()`'s future will never complete.
Add support for specifying custom interest in the creation of
`PollEvented` to allow `ready()` to correctly poll for urgent.
Fixes: tokio-rs#5784
Version
Current trunk.
Platform
Linux 6.3.6-200.fc38.x86_64 #1 SMP PREEMPT_DYNAMIC Mon Jun 5 15:45:04 UTC 2023 x86_64 GNU/Linux
Description
I have created a tokio
TcpStream
with the following code:Connecting to the resulting listener with
telnet
and issuing asend synch
command, I expect to see"Received"
in the output and for the the program to terminate. Instead, thestream.ready()
future never completes.At present,
TcpListener::accept()
ends up callingPollEvented::new()
viaTcpStream::new()
, which registersInterest::READABLE
andInterest::WRITABLE
explicitly, but does not provide forInterest::PRIORITY
.AsyncFd
provides awith_interest()
function to allow for asking forInterest::PRIORITY
; should there similarly be anaccept_with_interest()
onTcpListener
to forward toTcpStream
, coupled with aconnect_with_interest()
onTcpStream
for the other direction?The text was updated successfully, but these errors were encountered: