| 2720 | */ |
| 2721 | |
| 2722 | void |
| 2723 | httpShutdown(http_t *http) /* I - HTTP connection */ |
| 2724 | { |
| 2725 | if (!http || http->fd < 0) |
| 2726 | return; |
| 2727 | |
| 2728 | #ifdef HAVE_TLS |
| 2729 | if (http->tls) |
| 2730 | _httpTLSStop(http); |
| 2731 | #endif /* HAVE_TLS */ |
| 2732 | |
| 2733 | #ifdef _WIN32 |
| 2734 | shutdown(http->fd, SD_RECEIVE); /* Microsoft-ism... */ |
| 2735 | #else |
| 2736 | shutdown(http->fd, SHUT_RD); |
| 2737 | #endif /* _WIN32 */ |
| 2738 | } |
| 2739 | |
| 2740 | |
| 2741 | /* |
no test coverage detected