~ubuntu-branches/ubuntu/wily/grpc/wily-proposed

« back to all changes in this revision

Viewing changes to src/core/iomgr/tcp_windows.c

  • Committer: Package Import Robot
  • Author(s): Andrew Pollock
  • Date: 2015-08-28 09:26:25 UTC
  • mfrom: (1.1.1)
  • Revision ID: package-import@ubuntu.com-20150828092625-8057cxcbormjrmkn
Tags: 0.10.2-1
New upstream release (closes: #795766)

Show diffs side-by-side

added added

removed removed

Lines of Context:
148
148
  GPR_ASSERT(tcp->socket->read_info.outstanding);
149
149
 
150
150
  if (socket->read_info.wsa_error != 0) {
151
 
    char *utf8_message = gpr_format_message(info->wsa_error);
152
 
    gpr_log(GPR_ERROR, "ReadFile overlapped error: %s", utf8_message);
153
 
    gpr_free(utf8_message);
 
151
    if (socket->read_info.wsa_error != WSAECONNRESET) {
 
152
      char *utf8_message = gpr_format_message(info->wsa_error);
 
153
      gpr_log(GPR_ERROR, "ReadFile overlapped error: %s", utf8_message);
 
154
      gpr_free(utf8_message);
 
155
    }
154
156
    status = GRPC_ENDPOINT_CB_ERROR;
155
157
  } else {
156
158
    if (info->bytes_transfered != 0) {
259
261
  GPR_ASSERT(tcp->socket->write_info.outstanding);
260
262
 
261
263
  if (info->wsa_error != 0) {
262
 
    char *utf8_message = gpr_format_message(info->wsa_error);
263
 
    gpr_log(GPR_ERROR, "WSASend overlapped error: %s", utf8_message);
264
 
    gpr_free(utf8_message);
 
264
    if (info->wsa_error != WSAECONNRESET) {
 
265
      char *utf8_message = gpr_format_message(info->wsa_error);
 
266
      gpr_log(GPR_ERROR, "WSASend overlapped error: %s", utf8_message);
 
267
      gpr_free(utf8_message);
 
268
    }
265
269
    status = GRPC_ENDPOINT_CB_ERROR;
266
270
  } else {
267
271
    GPR_ASSERT(info->bytes_transfered == tcp->write_slices.length);
325
329
      ret = GRPC_ENDPOINT_WRITE_DONE;
326
330
      GPR_ASSERT(bytes_sent == tcp->write_slices.length);
327
331
    } else {
328
 
      char *utf8_message = gpr_format_message(info->wsa_error);
329
 
      gpr_log(GPR_ERROR, "WSASend error: %s", utf8_message);
330
 
      gpr_free(utf8_message);
 
332
      if (socket->read_info.wsa_error != WSAECONNRESET) {
 
333
        char *utf8_message = gpr_format_message(info->wsa_error);
 
334
        gpr_log(GPR_ERROR, "WSASend error: %s", utf8_message);
 
335
        gpr_free(utf8_message);
 
336
      }
331
337
    }
332
338
    if (allocated) gpr_free(allocated);
333
339
    gpr_slice_buffer_reset_and_unref(&tcp->write_slices);