Browse Source

Merge commit '412ef44' into cg_merges_20130524b

Luke Dashjr 12 years ago
parent
commit
f709ef3ac7
1 changed files with 1 additions and 1 deletions
  1. 1 1
      api.c

+ 1 - 1
api.c

@@ -3277,7 +3277,7 @@ static void send_result(struct io_data *io_data, SOCKETTYPE c, bool isjson)
 		n = send(c, buf, tosend, 0);
 
 		if (SOCKETFAIL(n)) {
-			if (errno == EAGAIN || errno == EWOULDBLOCK)
+			if (sock_blocks())
 				continue;
 
 			applog(LOG_WARNING, "API: send (%d) failed: %s", tosend, SOCKERRMSG);