Skip to content
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

Error on end unconnected #217

Merged
merged 2 commits into from
Oct 17, 2024

Conversation

jthomas43
Copy link
Contributor

  1. return UV_ENOTCONN if user calls udx_stream_write() / udx_stream_write_end() on a stream that is not connected (preventing crash)
  2. return UV_EPIPE if user calls udx_stream_write() / udx_stream_write_end() on a stream that is already ended
  3. return UV_EBUSY if user calls udx_socket_close() on a socket that still has streams. This simplifies behavior, which before allowed packets to be flushed.

@jthomas43 jthomas43 merged commit b1a2583 into holepunchto:main Oct 17, 2024
3 checks passed
@jthomas43 jthomas43 deleted the error-on-end-unconnected branch October 17, 2024 22:43
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