Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

Set uv_write_t errno correctly

Fixes #206.
  • Loading branch information...
ry committed Nov 16, 2011
1 parent 4ae40b6 commit 2007eb813d66497c384172882b95407be97bd539
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/unix/stream.c
@@ -145,7 +145,7 @@ void uv__stream_destroy(uv_stream_t* stream) {

req = ngx_queue_data(q, uv_write_t, queue);
if (req->cb) {
uv__set_artificial_error(stream->loop, req->error);
uv__set_sys_error(stream->loop, req->error);
req->cb(req, req->error ? -1 : 0);
}
}
@@ -490,7 +490,7 @@ static void uv__write_callbacks(uv_stream_t* stream) {

/* NOTE: call callback AFTER freeing the request data. */
if (req->cb) {
uv__set_artificial_error(stream->loop, req->error);
uv__set_sys_error(stream->loop, req->error);
req->cb(req, req->error ? -1 : 0);
}

0 comments on commit 2007eb8

Please sign in to comment.
You can’t perform that action at this time.