Mercurial > hg > nginx
comparison src/stream/ngx_stream_proxy_module.c @ 9106:113e2438dbd4 quic
Stream: removed QUIC support.
author | Roman Arutyunyan <arut@nginx.com> |
---|---|
date | Sun, 14 May 2023 12:05:35 +0400 |
parents | 0af598651e33 |
children |
comparison
equal
deleted
inserted
replaced
9105:8057e053480a | 9106:113e2438dbd4 |
---|---|
1770 if (dst) { | 1770 if (dst) { |
1771 | 1771 |
1772 if (dst->type == SOCK_STREAM && pscf->half_close | 1772 if (dst->type == SOCK_STREAM && pscf->half_close |
1773 && src->read->eof && !u->half_closed && !dst->buffered) | 1773 && src->read->eof && !u->half_closed && !dst->buffered) |
1774 { | 1774 { |
1775 | |
1776 #if (NGX_STREAM_QUIC) | |
1777 if (dst->quic) { | |
1778 | |
1779 if (ngx_quic_shutdown_stream(dst, NGX_WRITE_SHUTDOWN) | |
1780 != NGX_OK) | |
1781 { | |
1782 ngx_stream_proxy_finalize(s, | |
1783 NGX_STREAM_INTERNAL_SERVER_ERROR); | |
1784 return; | |
1785 } | |
1786 | |
1787 } else | |
1788 #endif | |
1789 | |
1790 if (ngx_shutdown_socket(dst->fd, NGX_WRITE_SHUTDOWN) == -1) { | 1775 if (ngx_shutdown_socket(dst->fd, NGX_WRITE_SHUTDOWN) == -1) { |
1791 ngx_connection_error(c, ngx_socket_errno, | 1776 ngx_connection_error(c, ngx_socket_errno, |
1792 ngx_shutdown_socket_n " failed"); | 1777 ngx_shutdown_socket_n " failed"); |
1793 | 1778 |
1794 ngx_stream_proxy_finalize(s, NGX_STREAM_INTERNAL_SERVER_ERROR); | 1779 ngx_stream_proxy_finalize(s, NGX_STREAM_INTERNAL_SERVER_ERROR); |