mirror of
https://github.com/curl/curl.git
synced 2026-04-15 01:01:41 +03:00
connect: revert the use of IP*_RECVERR
The options were added in #6341 and d13179d, but cause problems: Lots of
POLLIN event occurs but recvfrom read nothing.
Reported-by: Tatsuhiro Tsujikawa
Fixes #9209
Closes #9215
This commit is contained in:
parent
263409cf24
commit
3141062c23
1 changed files with 0 additions and 14 deletions
|
|
@ -1667,20 +1667,6 @@ CURLcode Curl_socket(struct Curl_easy *data,
|
|||
}
|
||||
#endif
|
||||
|
||||
#if defined(__linux__) && defined(IP_RECVERR)
|
||||
if(addr->socktype == SOCK_DGRAM) {
|
||||
int one = 1;
|
||||
switch(addr->family) {
|
||||
case AF_INET:
|
||||
(void)setsockopt(*sockfd, SOL_IP, IP_RECVERR, &one, sizeof(one));
|
||||
break;
|
||||
case AF_INET6:
|
||||
(void)setsockopt(*sockfd, SOL_IPV6, IPV6_RECVERR, &one, sizeof(one));
|
||||
break;
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
return CURLE_OK;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue