Skip to content

Commit 0d77db6

Browse files
authored
H2O: Fix an assertion failure (#10044)
1 parent b8d9647 commit 0d77db6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

frameworks/C/h2o/src/database.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ static int flush_connection(h2o_socket_cb cb, db_conn_t *conn)
186186

187187
if (send_status < 0)
188188
LIBRARY_ERROR("PQflush", PQerrorMessage(conn->conn));
189-
else if (send_status)
189+
else if (send_status && !h2o_socket_is_writing(conn->sock))
190190
h2o_socket_notify_write(conn->sock, cb);
191191

192192
return send_status < 0;

0 commit comments

Comments
 (0)