Questions about proxy delay
shunshunbu opened this issue · 4 comments
first condition :When I use the ftp command line client with a command similar to the following: "open ip port" to connect to the proxy server, I find that there will be a 10-second delay. Then I use tcpdump to capture packets and find that after the proxy server receives the ftp client's connection request, , the proxy request will be sent to the target server after 10 seconds. May I ask where this delay comes from and whether it can be shortened?
second condition :But when the ftp client is deployed on the proxy server, this delay disappears, which is very surprising.
the proftpd.conf like this:
<VirtualHost ip>
Port 7000
MaxClients 10
MaLoginAttempts 1
<IfModule mod_proxy.c>
ProxyEngine on
ProxyLog /var/log/proxy.log
ProxyRole reverse
ProxyReverseConnectPolicy RoundRobin
ProxyDateTransferPolicy client
ProxyReverseServers ftp://ip1:port
</IfModule>
</VirtualHost>
Hey, are you there? I read the source code in contrib/mod_proxy/lib/proxy/conn,c and found that PR_NETIO_STRM_OTHER will take five seconds and then be interrupted by the system. What is the reason for this delay? Hope you can provide answers
@Castaglia
Were you able to find a solution/answer to this question? I've been away for work of late, so haven't had much time to look into these issues.
Were you able to find a solution/answer to this question? I've been away for work of late, so haven't had much time to look into these issues.
Yes, I found a solution to this problem, thank you