mirror of
https://gitee.com/openharmony/third_party_nghttp2
synced 2024-11-27 01:50:28 +00:00
IPV6_PMTUDISC_DO
This commit is contained in:
parent
e224ef45a4
commit
4cd95470d6
@ -844,8 +844,8 @@ int Worker::create_quic_server_socket(UpstreamAddr &faddr) {
|
||||
continue;
|
||||
}
|
||||
|
||||
# if defined(IPV6_MTU_DISCOVER) && defined(IP_PMTUDISC_DO)
|
||||
int mtu_disc = IP_PMTUDISC_DO;
|
||||
# if defined(IPV6_MTU_DISCOVER) && defined(IPV6_PMTUDISC_DO)
|
||||
int mtu_disc = IPV6_PMTUDISC_DO;
|
||||
if (setsockopt(fd, IPPROTO_IPV6, IPV6_MTU_DISCOVER, &mtu_disc,
|
||||
static_cast<socklen_t>(sizeof(mtu_disc))) == -1) {
|
||||
auto error = errno;
|
||||
|
Loading…
Reference in New Issue
Block a user