Skip to content
This repository
Browse code

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

…he abort
  • Loading branch information...
commit 6f07f56fa83d18a16eb39f41ab49f23f9d31e321 1 parent 16d48be
jsievert jsievert authored

Showing 2 changed files with 3 additions and 1 deletion. Show diff stats Hide diff stats

  1. +2 1  include/uv.h
  2. +1 0  src/uv-common.c
3  include/uv.h
@@ -115,7 +115,8 @@ typedef enum {
115 115 UV_EAISERVICE,
116 116 UV_EAISOCKTYPE,
117 117 UV_ESHUTDOWN,
118   - UV_EEXIST
  118 + UV_EEXIST,
  119 + UV_ECONNRESETLINUX = 104
119 120 } uv_err_code;
120 121
121 122 typedef enum {
1  src/uv-common.c
@@ -101,6 +101,7 @@ const char* uv_err_name(uv_err_t err) {
101 101 case UV_EAISOCKTYPE: return "EAISOCKTYPE";
102 102 case UV_ESHUTDOWN: return "ESHUTDOWN";
103 103 case UV_EEXIST: return "EEXIST";
  104 + case UV_ECONNRESETLINUX: return "ECONNRESET";
104 105 default:
105 106 assert(0);
106 107 return NULL;

0 comments on commit 6f07f56

Please sign in to comment.
Something went wrong with that request. Please try again.