Open smkingsoft opened 7 years ago
interesting find. do you have an idea why that is so ?
it seems can not wake up epoll_wait. proxychains-ng use poll ? epoll and poll or select mode is different?
yes, proxychains uses both poll and select internally:
./src/allocator_thread.c: while((ret = select(readfd+1, &fds, NULL, NULL,
./src/core.c: ret = poll(fds, nfsd, time_remain);
./src/core.c: ret = poll_retry(pfd, 1, tcp_connect_time_out);
but i don't see yet how that can disturb someone else's use of epoll.
so so... i use nginx as reverse proxy. nginx ->proxychains-ng ->shadowsocks ->internet nginx default use epoll event, then nginx can not receive http response. now i config nginx use poll event, that is ok
oh, so nginx *calls*
proxychains-ng ? how did you configure that ?
use
start nginx config proxychains socks5 ip port
sorry to pull it back up but @smkingsoft would you please explain how you manage to work it like this? maybe you can post a config of yours? i am trying the same but cant manage to get it to work :(
epoll can not wake up by new fd(dup2).https://news.ycombinator.com/item?id=13918141
some software just like nginx use epoll, proxychains-ng does not work. only nginx use poll or select, proxychains-ng can work