Skip to content

Conversation

@sankred9527
Copy link

some tcp server can't work with gnirehtet well .

old code work in this way:

In this situation :
relay-rust call process() first , and both ready.is_readable() and ready.is_writable() are true .

relay-rust do process_send() successfully , and then call process_receive()? ( ? is important )
process_receive()? throw error(would block) to on_ready() , on_ready() will ignore this err_wouldblock .
BECAUSE process_receive throw error ,so self.update_interests(selector) in process() won't be called .

Ant the next process() will still be interest with read and write .
but the write buff is null ,so the connection is closed .

@sankred9527
Copy link
Author

I update my patch , make it more clearly .

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.

1 participant