Proxy error 10060 connection timedout

Use this forum to post questions relating to WinGate, feature requests, technical or configuration problems

Moderator: Qbik Staff

Proxy error 10060 connection timedout

Postby Sasikala » Aug 14 15 6:22 am

Hi Team,

ftp Upload via wingate proxy is failing with socket error 10060. Below is the log snippet.
Client side is implemented in Curl. (curl-7.21.1) and directly upload of file is successful.

But via Wingate proxy is failing in socket error 10060. Should we check anything in proxy configuration or on server side?

Could you please help me in resolving this ?


Unknown WWW Proxy Server 3180 52 info 3 Request: CONNECT xx.xx.com:63890
383 16-07-2015 12:54:57.532 172.16.73.76 Unknown WWW Proxy Server 3180 52 error 0 Caught socket exception in CWWWSession::OnRead() reading from client error 10060 [Connection to Remote Host timed out {Thd 3180} [socket #D38, 0.0.0.0:50429 to :0]] - terminating
385 16-07-2015 12:54:57.532 172.16.73.76 Unknown WWW Proxy Server 3180 52 info 2 Traffic: 0 117 0 0 20s
386 16-07-2015 12:54:57.532 172.16.73.76 Unknown WWW Proxy Server 3180 52 debug 10 Session terminated: network error in read handler


Thanks,
SasikalaRaju.
Last edited by Sasikala on Aug 17 15 7:08 pm, edited 1 time in total.
Sasikala
 
Posts: 4
Joined: Mar 07 14 1:57 am

Re: Proxy error 10060 connection timedout

Postby adrien » Aug 14 15 8:53 am

hi

error 10060 is a timed out error. It means either

a) the connection to the server timed out
b) some data transfer timed out

Either of these is actually fairly common, for example if the server you're trying to connect to is off line.

Are you sure the server is available? Does this happen with many sites, or just the occasional one?

Regards

Adrien
adrien
Qbik Staff
 
Posts: 5441
Joined: Sep 03 03 2:54 pm
Location: Auckland

Re: Proxy error 10060 connection timedout

Postby Sasikala » Aug 15 15 8:10 am

Hello,

I'm sure server is up and direct upload to server without proxy is working fine. Whatever operations on that server via proxy is failing in 10060 error.

Logfile in debug mode:


313 15-08-2015 00:36:35.319 172.16.72.227 Administrator WWW Proxy Service 5612 151 debug 1 New connection:
314 15-08-2015 00:36:35.335 172.16.72.227 Administrator WWW Proxy Service 5612 151 info 3 Request: CONNECT xxx.zz.com:21
315 15-08-2015 00:36:35.554 172.16.72.227 Administrator WWW Proxy Service 5612 151 debug 0 Status 200 response from internal
316 15-08-2015 00:36:35.554 172.16.72.227 Administrator WWW Proxy Service 5612 151 debug 0 Sending status 200 to client with 124 bytes
317 15-08-2015 00:36:37.632 172.16.72.227 Administrator WWW Proxy Service 4184 152 debug 1 New connection:
318 15-08-2015 00:36:37.647 172.16.72.227 Administrator WWW Proxy Service 4184 152 info 3 Request: CONNECT xxx.zz.com:33437
319 15-08-2015 00:36:58.660 172.16.72.227 Administrator WWW Proxy Service 4184 152 error 0 Caught socket exception in CWWWSession::OnRead() reading from client error 10060 [Connection to Remote Host timed out {Thd 4184} [socket #F54, 0.0.0.0:61077 to :0]] - terminating
321 15-08-2015 00:36:58.660 172.16.72.227 Administrator WWW Proxy Service 4184 152 info 2 Traffic: 0 178 0 0 20s
322 15-08-2015 00:36:58.660 172.16.72.227 Administrator WWW Proxy Service 4184 152 debug 10 Session terminated: network error in read handler
323 15-08-2015 00:36:58.676 172.16.72.227 Administrator WWW Proxy Service 5612 151 debug 0 Client closed connection
325 15-08-2015 00:36:58.676 172.16.72.227 Administrator WWW Proxy Service 5612 151 info 2 Traffic: 557 235 63 433 22s
326 15-08-2015 00:36:58.676 172.16.72.227 Administrator WWW Proxy Service 5612 151 info 2 Traffic: 0 0 0 0 0s
327 15-08-2015 00:36:58.676 172.16.72.227 Administrator WWW Proxy Service 5612 151 debug 10 Session terminated: client disconnected

Thanks,
sasikalaraju.
Sasikala
 
Posts: 4
Joined: Mar 07 14 1:57 am

Re: Proxy error 10060 connection timedout

Postby adrien » Aug 17 15 8:53 pm

Hi

ok, this looks to me like you're doing FTP over CONNECT (FTP client set to use HTTP proxy).

And then it looks like the data connection isn't working. This is fairly common if the FTP server accepts the PASV command but a firewall in front of the server doesn't recognise this and open a firewall hole for the data connection.

When you're not using the proxy, I bet the client uses the normal PORT command?

Adrien
adrien
Qbik Staff
 
Posts: 5441
Joined: Sep 03 03 2:54 pm
Location: Auckland

Re: Proxy error 10060 connection timedout

Postby Sasikala » Aug 18 15 12:05 am

Hi,

Yes . I'm trying to connect FTP via HTTP proxy.

Without proxy, Its working fine for PORT and PASV.
With proxy , PASV is failing with socket error 10060 , and active is failing with connection was aborted error.


************************************************************************************************
Without Proxy:

Passive mode: (success)
ESPV

Active mode: (success)
EPRT
PORT

***********************************************************************************************

*************************************************************************************************************************************
Without proxy:

passive mode: (failure)
ESPV [Error : socket error 10060]

Active mode: (failure)
EPRT [Error : Connection was aborted]

************************************************************************************************************************************


Thanks,
Sasikalaraju
Sasikala
 
Posts: 4
Joined: Mar 07 14 1:57 am

Re: Proxy error 10060 connection timedout

Postby adrien » Aug 22 15 10:08 am

Hi

WinGate HTTP proxy uses only PASV, it doesn't support EPSV.

Have you tried another FTP client using just PASV?

Regards

Adrien
adrien
Qbik Staff
 
Posts: 5441
Joined: Sep 03 03 2:54 pm
Location: Auckland

Re: Proxy error 10060 connection timedout

Postby wllmdjngh » Nov 19 20 11:23 am

Hi, I have a similar problem.
When I turn off the SSL proxy that has inspection setup, the client will connect to the server in the cloud. As soon as the proxy is turned on again, it will not do the handshake to login the system.
I even turned of inspection to the site that it is trying to connect to but that doesn't help either. Turned of inspection at the IP level, negative again.

It is a Java client trying to connect to the cloud based server.

Any idea where to look?

Thanks
Willem
wllmdjngh
 
Posts: 4
Joined: Nov 19 20 11:17 am

Re: Proxy error 10060 connection timedout

Postby adrien » Dec 08 20 2:29 pm

I'd check to see where the java client is trying to connect (may need to use a packet capturing tool like Wireshark). It's not clear if java clients all use the browser proxy configuration.

Or are you seeing a CONNECT request coming in from the client in the WinGate Management activity screen?

Regards

Adrien de Croy
adrien
Qbik Staff
 
Posts: 5441
Joined: Sep 03 03 2:54 pm
Location: Auckland

Re: Proxy error 10060 connection timedout

Postby wllmdjngh » Feb 04 21 3:54 am

Caught socket exception in CWWWSession::OnRead() reading from client error 10060 [Connection to Remote Host timed out] - terminating

I have not been able to get rid of this message. When accessing the website from the Wingate server, it displays rather fast but trying to display from a client 8 out of 10 times I get the Connection to Remote Host timed out.
This site is the most troublesome. Other sites sometimes it gets the error.

Other errors are the the site is not secure while it has a valid certificate. Inspections turned on or of.

This behavior is being observed at to different sites with Wingate.
I appreciate any tips?
Thanks
wllmdjngh
 
Posts: 4
Joined: Nov 19 20 11:17 am

Re: Proxy error 10060 connection timedout

Postby wllmdjngh » Feb 05 21 9:04 am

Hi Adrian.
The Java issue I have to do the packet capture.

The latest request is just browsing websites.
I am not an expert in communications. Knew a very long time ago when RS232 was the star of the moment and point to point modems where the norm to communicate remote sites.
Regards.
wllmdjngh
 
Posts: 4
Joined: Nov 19 20 11:17 am

Re: Proxy error 10060 connection timedout

Postby wllmdjngh » Feb 06 21 2:59 am

Hi Adrian.
The Java issue I have to do the packet capture.

The latest request is just browsing websites.
I am not an expert in communications. Knew a very long time ago when RS232 was the star of the moment and point to point modems where the norm to communicate remote sites.
Regards.
wllmdjngh
 
Posts: 4
Joined: Nov 19 20 11:17 am

Re: Proxy error 10060 connection timedout

Postby adrien » Mar 02 21 8:44 am

Hi

Do you think it's possible that the server you're trying to connect to has a dynamic IP address? If a server IP changes, and WinGate is set to force cache DNS records (default setting in DNS client), then it's possible WinGate could be trying to use a stale IP address for the server, whereas a client on the WinGate computer wouldn't be. That could account for the difference.

You could try turning off that minimum cache duration (Minimum TTL) setting in the DNS client.

Regards

Adrien
adrien
Qbik Staff
 
Posts: 5441
Joined: Sep 03 03 2:54 pm
Location: Auckland


Return to WinGate

Who is online

Users browsing this forum: No registered users and 22 guests

cron