Commit Diff


commit - caa6cf11e1afc94b38d5250e9b6fe574a6e5ca80
commit + bcb309261e439efc6ff6b567d9df9f6b837364bf
blob - d071fb994783827aad7f9d55c28f54ecdbbf0f0d
blob + b1447765c6f0352994c8d4911d6d1fe8a68514f5
--- gotd/session_read.c
+++ gotd/session_read.c
@@ -462,15 +462,7 @@ session_dispatch_client(int fd, short events, void *ar
 	if (events & EV_WRITE) {
 		while (ibuf->w.queued) {
 			n = msgbuf_write(&ibuf->w);
-			if (n == -1 && errno == EPIPE) {
-				/*
-				 * The client has closed its socket.
-				 * This can happen when Git clients are
-				 * done sending pack file data.
-				 */
-				msgbuf_clear(&ibuf->w);
-				continue;
-			} else if (n == -1 && errno != EAGAIN) {
+			if (n == -1 && errno != EAGAIN) {
 				err = got_error_from_errno("imsg_flush");
 				disconnect_on_error(client, err);
 				return;