Mercurial > hg > nginx
comparison src/core/ngx_connection.c @ 9147:58afcd72446f
QUIC: path MTU discovery.
MTU selection starts by doubling the initial MTU until the first failure.
Then binary search is used to find the path MTU.
author | Roman Arutyunyan <arut@nginx.com> |
---|---|
date | Mon, 14 Aug 2023 09:21:27 +0400 |
parents | adcc6d8acfd4 |
children | 1c9264603adc |
comparison
equal
deleted
inserted
replaced
9146:f3412ec3b6d1 | 9147:58afcd72446f |
---|---|
1581 if (err == NGX_EINVAL && c->log_error == NGX_ERROR_IGNORE_EINVAL) { | 1581 if (err == NGX_EINVAL && c->log_error == NGX_ERROR_IGNORE_EINVAL) { |
1582 return 0; | 1582 return 0; |
1583 } | 1583 } |
1584 #endif | 1584 #endif |
1585 | 1585 |
1586 if (err == NGX_EMSGSIZE && c->log_error == NGX_ERROR_IGNORE_EMSGSIZE) { | |
1587 return 0; | |
1588 } | |
1589 | |
1586 if (err == 0 | 1590 if (err == 0 |
1587 || err == NGX_ECONNRESET | 1591 || err == NGX_ECONNRESET |
1588 #if (NGX_WIN32) | 1592 #if (NGX_WIN32) |
1589 || err == NGX_ECONNABORTED | 1593 || err == NGX_ECONNABORTED |
1590 #else | 1594 #else |
1598 || err == NGX_EHOSTDOWN | 1602 || err == NGX_EHOSTDOWN |
1599 || err == NGX_EHOSTUNREACH) | 1603 || err == NGX_EHOSTUNREACH) |
1600 { | 1604 { |
1601 switch (c->log_error) { | 1605 switch (c->log_error) { |
1602 | 1606 |
1607 case NGX_ERROR_IGNORE_EMSGSIZE: | |
1603 case NGX_ERROR_IGNORE_EINVAL: | 1608 case NGX_ERROR_IGNORE_EINVAL: |
1604 case NGX_ERROR_IGNORE_ECONNRESET: | 1609 case NGX_ERROR_IGNORE_ECONNRESET: |
1605 case NGX_ERROR_INFO: | 1610 case NGX_ERROR_INFO: |
1606 level = NGX_LOG_INFO; | 1611 level = NGX_LOG_INFO; |
1607 break; | 1612 break; |