summaryrefslogtreecommitdiffstats
path: root/src/server/rpc.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/server/rpc.c')
-rw-r--r--src/server/rpc.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/server/rpc.c b/src/server/rpc.c
index 255d893..fd804e9 100644
--- a/src/server/rpc.c
+++ b/src/server/rpc.c
@@ -80,7 +80,9 @@ void rpc_sendStatsJson(int sock, dnbd3_host_t* host, const void* data, const int
if ( ret == 0 ) return;
if ( ret == -1 ) {
if ( errno == EINTR ) continue;
- sendReply( sock, "500 Internal Server Error", "text/plain", "Server made a boo-boo", -1, HTTP_CLOSE );
+ if ( errno != EAGAIN && errno != EWOULDBLOCK ) {
+ sendReply( sock, "500 Internal Server Error", "text/plain", "Server made a boo-boo", -1, HTTP_CLOSE );
+ }
return; // Unknown error
}
hoff += ret;