rofl0r
rofl0r
anyway, maybe it is helpful when you compile proxychains in debug mode (CFLAGS=-DDEBUG ./configure) to see what's going on when the connection times out
looks like the problem is because that ASIO network impl uses sockets in non-blocking mode. the relevant code is in timed_connect() in src/core.c. i can't tell from the top of...
hmm. can you try if commenting out line 184 in core.c makes it work ? ```diff - fcntl(sock, F_SETFL, !O_NONBLOCK); + //fcntl(sock, F_SETFL, !O_NONBLOCK); ```
please try the patch i pushed to branch `nonblock`
oh, i made a mistake. this here `fcntl(sock, F_SETFL, flags & (~O_NONBLOCK));` should actually be `fcntl(sock, F_SETFL, flags | O_NONBLOCK);`
in case that doesn't work either, i force-pushed a new commit to `nonblock` branch, hopefully that fixes it!
did you test the new patch, or the one-line change from my previous comment ?
it's weird that your previous log has this: ``` DEBUG: poll ret=1 ``` since the new commit doesn't actually call poll anymore with a non-blocking socket. are you sure you...
thanks! that means that the socket at this point was blocking, so i looked why and found that we actually create a new socket for the connection and then dup()...
a curious issue... can you merge nonblock2 and my first patch from nonblock? that one seemed to work for the connect step. https://github.com/rofl0r/proxychains-ng/commit/6d90d82a7b0998db5d29bf563ca6cefc72080dbb (you can still get to the commit...