summaryrefslogtreecommitdiff
path: root/lib/socketpair.c
Commit message (Collapse)AuthorAgeFilesLines
* misc: copyright year range updatesDaniel Stenberg2021-07-191-1/+1
|
* Revert "Revert "socketpair: fix potential hangs""Daniel Stenberg2021-06-051-9/+25
| | | | | | | | | This reverts commit 3e70c3430a370a31eff2c1d8fea29edaca8f1127. Thus brings back the change from #7144 as was originally landed in c769d1eab4de8b Closes #7144 (again)
* Revert "socketpair: fix potential hangs"Daniel Stenberg2021-06-031-25/+9
| | | | | | This reverts commit c769d1eab4de8b9f1bd84d992c63692fdc43c5be. See #7144 for details
* socketpair: fix potential hangsPaul Groke2021-06-031-9/+25
| | | | | | | | | | | Fixes potential hang in accept by using select + non-blocking accept. Fixes potential hang in peer check by replacing the send/recv check with a getsockname/getpeername check. Adds length check for returned sockaddr data. Closes #7144
* curl.se: new homeDaniel Stenberg2020-11-041-1/+1
| | | | Closes #6172
* socketpair: allow CURL_DISABLE_SOCKETPAIRDaniel Stenberg2020-08-261-2/+2
| | | | | | ... to completely disable the use of socketpair Closes #5850
* lib: fix warnings found when porting to NuttXXiang Xiao2019-12-271-0/+3
| | | | | | | | | | | | - Undefine DEBUGASSERT in curl_setup_once.h in case it was already defined as a system macro. - Don't compile write32_le in curl_endian unless CURL_SIZEOF_CURL_OFF_T > 4, since it's only used by Curl_write64_le. - Include <arpa/inet.h> in socketpair.c. Closes https://github.com/curl/curl/pull/4756
* socketpair: fix include and define for older TCP header systemsHarry Sintonen2019-10-101-0/+6
| | | | | | | fixed build for systems that need netinet/in.h for IPPROTO_TCP and are missing INADDR_LOOPBACK Closes #4480
* socketpair: fix double-close in error caseDaniel Stenberg2019-10-101-2/+2
| | | | Follow-up to bc2dbef0afc08
* socketpair: an implemention for Windows and moreDaniel Stenberg2019-10-101-0/+112
Curl_socketpair() is designed to be used and work everywhere if there's no native version or the native version isn't good enough. Closes #4466