commit 774690f252050b81d6f2c737e9c71111088a23ec from: Omar Polo date: Tue Jul 20 07:21:49 2021 UTC handle read failure commit - 00717aff2b9abc2aa4fcd9fefd07a6d40e21976e commit + 774690f252050b81d6f2c737e9c71111088a23ec blob - 80b58738cec69d9ab8eb9bca16c88a19139b2c70 blob + e42024b1ac845d80b1ff160f43770ad712f73b9a --- gemini.c +++ gemini.c @@ -478,6 +478,12 @@ copy_body(int fd, short ev, void *d) case TLS_WANT_POLLOUT: yield_w(req, copy_body, NULL); return; + case -1: + /* + * XXX: should notify the user that the + * download was aborted. + */ + /* fallthrough */ case 0: net_send_ui(IMSG_EOF, req->id, NULL, 0); close_conn(0, 0, req);