Permalink
Browse files

add linux connection reset code, should fix issue #206, or at least t…

…he abort
  • Loading branch information...
1 parent 16d48be commit 6f07f56fa83d18a16eb39f41ab49f23f9d31e321 @jsievert jsievert committed Nov 6, 2011
Showing with 3 additions and 1 deletion.
  1. +2 −1 include/uv.h
  2. +1 −0 src/uv-common.c
View
3 include/uv.h
@@ -115,7 +115,8 @@ typedef enum {
UV_EAISERVICE,
UV_EAISOCKTYPE,
UV_ESHUTDOWN,
- UV_EEXIST
+ UV_EEXIST,
+ UV_ECONNRESETLINUX = 104
} uv_err_code;
typedef enum {
View
1 src/uv-common.c
@@ -101,6 +101,7 @@ const char* uv_err_name(uv_err_t err) {
case UV_EAISOCKTYPE: return "EAISOCKTYPE";
case UV_ESHUTDOWN: return "ESHUTDOWN";
case UV_EEXIST: return "EEXIST";
+ case UV_ECONNRESETLINUX: return "ECONNRESET";
default:
assert(0);
return NULL;

0 comments on commit 6f07f56

Please sign in to comment.