GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — windows: defer reporting TCP write failure until next tick · libuv/libuv@f880023

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • src/win
    • tcp.c
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎src/win/tcp.c‎

Copy file name to clipboardExpand all lines: src/win/tcp.c
+7-2Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -868,8 +868,13 @@ int uv_tcp_write(uv_loop_t* loop,
868868
uv_insert_pending_req(loop, (uv_req_t*)req);
869869
}
870870
} else {
871-
/* Send failed due to an error. */
872-
return WSAGetLastError();
871+
/* Send failed due to an error, report it later */
872+
req->u.io.queued_bytes = 0;
873+
handle->reqs_pending++;
874+
handle->stream.conn.write_reqs_pending++;
875+
REGISTER_HANDLE_REQ(loop, handle, req);
876+
SET_REQ_ERROR(req, WSAGetLastError());
877+
uv_insert_pending_req(loop, (uv_req_t*) req);
873878
}
874879

875880
return 0;

0 commit comments

Comments
0 (0)
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.