xbps/lib/fetch
Andreas Kempe 0c657582f2 lib/fetch/common.c: send socks5 request as a single transaction
Splitting the socks5 request is causing issues when running against Tor.
It causes Tor to fail with an address unknown error. Assembling the
request and sending it in its entirety solves the issue.

An strace of torsocks, that functions correctly when used with xbps, shows
that the request is being sent all at once:

        recvfrom(3, "\5\0", 2, 0, NULL, NULL)
        sendto(3, "\5\1\0\3>lysator7eknrfl47rlyxvgeamrv7ucefgrrlhk7rouv3sna25asetwid.onion\0P", 69, 0, NULL, 0)
        recvfrom(3, "\5\0\0\1\0\0\0\0\0\0", 10, 0, NULL, NULL)

Closes: #54 [via git-merge-pr]
2019-04-20 11:11:40 +02:00
..
common.c lib/fetch/common.c: send socks5 request as a single transaction 2019-04-20 11:11:40 +02:00
common.h lib/fetch: default port, error checks and authentication support 2016-09-02 17:50:05 +02:00
errlist.sh Implemented support for working with remote repositories. 2009-10-27 01:46:00 +01:00
fetch.c lib/fetch: add happy eyeballs connect algorithm (RFC6555/RFC8305) 2019-04-19 22:58:50 +02:00
fetch.h lib/fetch: add happy eyeballs connect algorithm (RFC6555/RFC8305) 2019-04-19 22:58:50 +02:00
file.c libfetch: misc cleanups due to nbcompat removal. 2014-12-28 03:34:36 +01:00
ftp.c Fix compilation in ftp.c 2017-08-22 18:03:32 -04:00
ftp.errors Implemented support for working with remote repositories. 2009-10-27 01:46:00 +01:00
http.c lib/fetch/http.c: ignore headers after CONNECT response 2019-04-08 13:34:23 +02:00
http.errors libfetch: merge some features from FreeBSD: 2015-10-24 07:52:30 +02:00