简体   繁体   English

服务器的Apache VFS2回复超时

[英]Apache VFS2 reply timeout from the server

I am using VFS2 to upload file to remote hosts (FTP, SFTP) for my clients but sometimes i have to wait up to 5 minutes to get a timeout if connection is established but the server doesn't reply. 我正在使用VFS2将文件上传到客户端的远程主机(FTP,SFTP),但是有时我必须等待多达5分钟才能获得超时(如果建立了连接但服务器没有响应)。 Eg apache vfs receives a connection from remote host on port 22 but on the remote host port 22 is used by ssh server not by SFTP server and that's why vfs waits 5 minutes for a reply before closing a connection (different protocols are used that's why the server cannot reply to a client). 例如,apache vfs从端口22上的远程主机接收到一个连接,但是在ssh服务器上而不是SFTP服务器使用远程主机端口22上的连接,这就是为什么vfs在关闭连接之前等待5分钟的答复(使用了不同的协议,这就是为什么服务器无法回复客户端)。 My question is how to configure VFS do not wait for a such long time and configure timeout for that case ? 我的问题是如何配置VFS不要等待那么长时间并为这种情况配置超时?

I think you can use setSessionTimeoutMillis 我认为您可以使用setSessionTimeoutMillis

See this link 看到这个链接

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM