Skip to content

Commit 2c319ff

Browse files
committed
fix
1 parent 88bdfdc commit 2c319ff

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/core/connection.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,7 @@ static unsigned int connection_count(cache_connection_node* ctable) {
315315
static unsigned int connection_any(cache_connection_node* ctable) {\
316316
for (unsigned int i = 0; i < CONNECTION_HASH_ENTRIES; i++) {
317317
cache_connection_node* target = &ctable[i];
318-
if (target->connection.client_sock != -1) return true
318+
if (target->connection.client_sock != -1) return true;
319319
}
320320

321321
return false;

src/core/http_respond.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ state_action http_respond_contentbody(int epfd, cache_connection* connection) {
137137
DEBUG("[#%d] EOF Reached\r\n", fd);
138138
return close_connection;
139139
}else if (bytes_sent == -1) {
140-
if (errno == EINTR || bytes_sent == EWOULDBLOCK) {
140+
if (errno == EINTR || errno == EWOULDBLOCK) {
141141
return continue_processing;
142142
}
143143
PWARN("Error sending bytes with sendfile. Closing connection.");

0 commit comments

Comments
 (0)