Skip to content
This repository has been archived by the owner on May 4, 2018. It is now read-only.

Add uv_try_write on windows #1464

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open

Conversation

mattn
Copy link
Contributor

@mattn mattn commented Sep 9, 2014

No description provided.

@saghul
Copy link
Contributor

saghul commented Sep 9, 2014

Thanks @mattn! We need to wait for #1439 in order to have proper write queuing support on Windows. uv_try_write must fail if there are ourstanding write requests.

return uv_tcp_try_write((uv_tcp_t*) stream, bufs, nbufs);
break;
default:
assert(0);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's do UV_ENOSYS trick here, not just fail :)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is no written spec per se, but we try to not fail so abuptly. Please return an error.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done c20bb22

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants