Lines 642-648
Link Here
|
642 |
if (nvec > 0) { |
642 |
if (nvec > 0) { |
643 |
(void)apr_socket_opt_set(s, APR_TCP_NOPUSH, 1); |
643 |
(void)apr_socket_opt_set(s, APR_TCP_NOPUSH, 1); |
644 |
rv = writev_nonblocking(s, vec, nvec, bb, bytes_written, c); |
644 |
rv = writev_nonblocking(s, vec, nvec, bb, bytes_written, c); |
645 |
nvec = 0; |
|
|
646 |
if (rv != APR_SUCCESS) { |
645 |
if (rv != APR_SUCCESS) { |
647 |
(void)apr_socket_opt_set(s, APR_TCP_NOPUSH, 0); |
646 |
(void)apr_socket_opt_set(s, APR_TCP_NOPUSH, 0); |
648 |
return rv; |
647 |
return rv; |
Lines 650-655
Link Here
|
650 |
} |
649 |
} |
651 |
rv = sendfile_nonblocking(s, bucket, bytes_written, c); |
650 |
rv = sendfile_nonblocking(s, bucket, bytes_written, c); |
652 |
if (nvec > 0) { |
651 |
if (nvec > 0) { |
|
|
652 |
nvec = 0; |
653 |
(void)apr_socket_opt_set(s, APR_TCP_NOPUSH, 0); |
653 |
(void)apr_socket_opt_set(s, APR_TCP_NOPUSH, 0); |
654 |
} |
654 |
} |
655 |
if (rv != APR_SUCCESS) { |
655 |
if (rv != APR_SUCCESS) { |