I have a WebSocket WCF based server.
a web (HTML) client is connecting this server using WebSockets.
The server worked well with all clients, till we stumble a client, Chrome (And Firefox) running on Windows 8.1, that fails to connect.
The server receives "Open" request but in Wireshark we see that the connection is closed with unknown reason (21584).
the client shows no message/exception.
From time to time, long time after the failure, the server prints to the log and exception:
The I/O operation has been aborted because of either a thread exit or an application request
What can a reason for such problem? how can we overcome it? or what will be the best way to trace/debug this problem?
thanks.
R.
Related
I would like to seek for your advice if you have any idea or you have already encountered this issue “SSL/TLS handshake Issue” ?
To give you a summary, we’re getting an error the error below when connecting to Coupa (ERP) through HTTP.
Remote host closed connection. Possible SSL/TLS handshake issue. Check protocols, cipher suites and certificate set up. Use -Djavax.net.debug=ssl for further debugging.
We have several HTTP requests using the same HTTP config, but there’s this only one specific request that gives the said error. Also, this HTTP request works in postman. This occurs only in one Mule environment (UAT Environment). It works fine in our sandbox environment.
We are not sure whether the SSL connection/Handshake is closed on our end or server end.
If ever its on our end, how do we identify the fix for that?
If it’s on the server end, what should be the proof that we need to provide to them to say that the issue is on their end.
The server -Coupa in this case- is closing the connection just after it was opened by the client -a Mule application- probably before the client can send the HTTP request. The server could do this by any of a number of causes and the client does not receive any error messages or codes to indicate a reason. You will need to learn the reason from the server side.
Usual reasons are because an HTTPS connection doesn't match thee required ciphers suites or protocol versions accepted by the server, or because the client IP is not whitelisted. In those situations documentation from what's acceptable to the server side is useful. There could some other reasons that are known only to the server side.
A method to troubleshoot TLS connection issues is to do a traffic capture of the TCP packets, ideally from both sides, but if you don't control the server it will be only possible from the client. Another option if you are using HTTPS is to enable Java SSL Debug log in the Mule runtime to print the HTTPS connection information. You need to understand how to troubleshoot TLS to use these tools.
A ftp client program using libcurl is getting timeout. however curl work fine to same server port running vsftpd server.
Inside packet capture, difference i see that ftp client not getting new session ticket . seems like that client is waiting for that and getting timeout.
ftp client program packet capture
curl packet capture(which work fine)
please help in finding out cause of the issue. trying this past two days no progress.
NOTE: server is same in both cases, there is just server interfaces ip difference, which appear in packet captures.
Thanks in advance
Used platforms:
Ionic mobile application with IBM MFP8.0 Server.
Configuration:
Mobile Application communicates to the server with public domain via HTTPS protocol. Request flow is passed from Internet to intranet & SSL offloading is done at RP and passed to LB. LB in-front of MFP server.
Problem Statement:
When the Application launched and closed continuously or when i refresh the application the below error occurs,
-- failure: {"status":-1,"responseText":"","responseHeaders":{},"errorMsg":"Read
error: ssl=0xc2befd00: I/O error during system call, Connection reset
by peer","errorCode":"UNEXPECTED_ERROR"}
The issue occurrence is intermittent
What I did:
There is SSL pinning code integrated with the Application
WL.Client.pinTrustedCertificatePublicKey('myCertificate.cer').then(onSuccess,
onFailure);
I tried commenting this piece of code as well never helped.
Any recommendation to fix this issue.
I have a reference to a webservice which uses SOAP to process the searches and starting today morning i am receiving the following error:
The underlying connection was closed: An unexpected error occurred on a send.
This will not happen for few requests if the application is restarted and will start receiving these errors after a some time say like 5 minutes and if we restart as said the services are re-processed without any issues.
I have read: https://support.microsoft.com/en-us/kb/915599
but those methods will not work for my case. Anyone else have faced similar problem???
I don't have enough information to guarantee this will work, but this has happened to me before and the following solved the issue:
ServicePointManager.SecurityProtocol = SecurityProtocolType.Ssl3
Note that this will force SSL3 instead of TLS. If the site you're hitting doesn't handle TLS well it could solve your problem. Note that all other HTTP/ServicePoint objects will then use SSL3 instead of TLS unless you change it back (including others in the same AppPool if this is IIS hosted).
The Web Service host has changed their certificates and that was causing the web service to fail when trying to access the service. The host has provided me with the latest certificates and now the problem is resolved.
Its weird that that initial connection and subsequent requests worked once i restart the application until the connection is closed and then when the application re-tries to connect, that's when the error message is popping up.
I am new to WCF, I am trying to upload files to remote server using a windows service and WCF. When i run my code i get the below error.
An unhandled exception of type 'System.ServiceModel.EndpointNotFoundException' occurred in mscorlib.dll
Additional information: Could not connect to net.tcp://74.208.195.53:5000/. The connection attempt lasted for a time span of 00:00:21.0122019. TCP error code 10060: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond 74.208.195.53:5000.
I tried using the sample project provided in this link http://www.codeproject.com/KB/WCF/WCFDownloadUploadService.aspx
I read in other blogs that, the port has to be allowed throught the firewall on the server.i did that even tried turning off the firewall on the server but it dint help.
Can someone please guide me how i could get this issue resolved.Any help would be highly appreciated. I am using win7 and the remote server is windows server 2008.
Thanks
In some circumstances you need to enable tcp on the server. this post might help