Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Little clean up

  • Loading branch information...
commit 2a60fad8c216c9e81d32c162e6fb4dc99094a8fc 1 parent 9fed6d2
@alobbs alobbs authored
Showing with 7 additions and 7 deletions.
  1. +7 −7 cherokee/socket.c
View
14 cherokee/socket.c
@@ -1430,14 +1430,14 @@ cherokee_socket_connect (cherokee_socket_t *sock)
switch (err) {
case EISCONN:
break;
- case EINVAL:
- case ENOENT:
- case ECONNRESET:
- case EHOSTUNREACH:
- case ECONNREFUSED:
- case EADDRNOTAVAIL:
+ case ENOENT: /* No such file or directory */
+ case ECONNRESET: /* Connection reset by peer */
+ case ECONNREFUSED: /* Connection refused */
+ case ETIMEDOUT: /* Operation timed out */
return ret_deny;
- case ETIMEDOUT:
+ case EINVAL: /* Invalid argument */
+ case EHOSTUNREACH: /* No route to host */
+ case EADDRNOTAVAIL: /* Can't assign requested address */
return ret_error;
case EAGAIN:
case EALREADY:
Please sign in to comment.
Something went wrong with that request. Please try again.