Commit Diff
- Commit:
b06f80cdf43be684bd57f9674917d2479bc0d317
- From:
- Omar Polo <op@omarpolo.com>
- Date:
- Message:
- switch to handle_open_conn right after handshake So we don't re-enter the handle_handsahke and re-do the loop on fnmatch etc. This way, once we're successfully past the handshake, we'll re-enter no handle_open_conn.
- Actions:
- Patch | Tree
--- server.c +++ server.c @@ -294,9 +294,9 @@ handle_handshake(struct pollfd *fds, struct client *c) /* h->domain != NULL ? h->domain : "(null)"); */ if (h->domain != NULL) { - c->state = handle_open_conn; c->host = h; - handle_open_conn(fds, c); + c->state = handle_open_conn; + c->state(fds, c); return; }