void buffer_output(void) {
#ifdef HAVE_TCP_BUFFERING
- setsockopt(CC->client_socket, IPPROTO_TCP, TCP_CORK, &on, 4);
+ if (!CC->redirect_ssl) {
+ setsockopt(CC->client_socket, IPPROTO_TCP, TCP_CORK, &on, 4);
+ }
#endif
}
void unbuffer_output(void) {
#ifdef HAVE_TCP_BUFFERING
- setsockopt(CC->client_socket, IPPROTO_TCP, TCP_CORK, &off, 4);
+ if (!CC->redirect_ssl) {
+ setsockopt(CC->client_socket, IPPROTO_TCP, TCP_CORK, &off, 4);
+ }
#endif
}
if (WIFEXITED(status)) {
/* Exit code 0 means the watcher should exit */
- if (WEXITSTATUS(status) == 0) {
+ if (WEXITSTATUS(status) == CTDLEXIT_SHUTDOWN) {
do_restart = 0;
}