File tree Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -203,22 +203,19 @@ bool HTTP::error() {
203
203
if ( errno == 0 )
204
204
return false ;
205
205
206
+ if ( errno == EWOULDBLOCK || errno == EAGAIN )
207
+ return false ;
208
+
206
209
// Socket is already connected
207
210
if ( errno == EISCONN )
208
211
printf (" Socket is already connected\n " );
209
212
210
- if ( errno == EWOULDBLOCK )
211
- printf (" Socket EWOULDBLOCK\n " );
212
-
213
213
if (errno == EINVAL )
214
214
printf (" Exception caught while reading socket - Invalid argument: _sfd = %i\n " , _sockfd);
215
215
216
216
if ( errno == ECONNREFUSED )
217
217
printf (" Couldn't connect, connection refused.\n " );
218
218
219
- if ( errno == EAGAIN )
220
- printf (" New error from the O_NONBLOCK flag.\n " );
221
-
222
219
if ( errno == EINPROGRESS )
223
220
printf (" This returns is often see for large ElasticSearch requests.\n " );
224
221
You can’t perform that action at this time.
0 commit comments