commit b06f80cdf43be684bd57f9674917d2479bc0d317 from: Omar Polo date: Mon Feb 01 20:27:08 2021 UTC 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. commit - 92da82858b6b8fe44f34e582967767d7f4d32f4d commit + b06f80cdf43be684bd57f9674917d2479bc0d317 blob - 2f8112db514c87161d2be9c4b42b56bf72f3a4cc blob + 40b9c7356223916bfc402bc86cf90e13a6bb6116 --- 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; }