Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions src/stream/tcp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -387,7 +387,6 @@ impl AsyncWrite for IpStackTcpStream {
// The task that answers the SYN may not have run yet. Data written now would leave ahead of
// the SYN-ACK, under the initial sequence number.
if state == TcpState::Listen {
self.write_notify.lock().unwrap().replace(cx.waker().clone());
return Poll::Pending;
}

Expand Down Expand Up @@ -588,7 +587,7 @@ async fn tcp_main_logic_loop(
let state = tcb.get_state();
log::trace!("{network_tuple} {state:?}: session now in {state:?} state");
}
write_notify.lock().unwrap().take().map(|w| w.wake_by_ref()).unwrap_or(());
write_notify.wake();

let tcb_clone = tcb.clone();

Expand Down
Loading