Any attempt to send or receive will produce the same error. Don't use URL. Are you accessing http data? Can you use the HttpClient library instead of the standard library?
The library has more options and will provide better error messages. The only time I've seen something like this happen is when I have a bad connection, or when somebody is closing the socket that I am using from a different thread context.
This will happen from time to time either when a connection times out or when a remote host terminates their connection closed application, computer shutdown, etc.
You can avoid this by managing sockets yourself and handling disconnections in your application via its communications protocol and then calling shutdownInput and shutdownOutput to clear up the session. Look if you have another service or program running on the http port. It happened to me when I tried to use the port and it was taken by another program. Stack Overflow for Teams — Collaborate and share knowledge with a private group. Create a free Team What is Teams?
Collectives on Stack Overflow. Learn more. SocketException: Software caused connection abort: recv failed [duplicate] Ask Question. Asked 13 years, 3 months ago. Active 6 years, 9 months ago. Viewed k times. Hey there. You marked the answer as correct - any chance you remember what you found by doing some sniffing? This problem has got me. See my question stackoverflow. I am also having this problem. The only solution is to reboot the entire machine. Anyone have a complete answer?
KevinWong The solution is to fix the network. EJP Kinda funny that the question that was "asked before" was asked two years after this one :- — grammar Add a comment. Active Oldest Votes. AdamC AdamC No it doesn't. Premkumar Sivasankar Posted December 29, 0 Comments. Hi Prajwal, The client is closing the socket connection before the server can respond back to the client. Kind Regards, Prem. Anonymous Posted December 4, 0 Comments. I meet this problem too. Register or Login. Welcome back!
Sign in with Email. Reset Your Password We'll send an email with a link to reset your password. Stay ahead! Get the latest news, expert insights and market research, tailored to your interests. Sign up with Email. Sign in with email Enter the email address associated with your account. You auth link is expired or incorrect, please try again. After that, the client side is closed, and the server side continues to work. Your server appears to close the socket after sending a response.
After that, the client will not be able to send further requests without opening a new connection. Typically, the server allows the client to control the fate of the connection, so that the client can send multiple requests. Your client could send a "close" request to indicate to the server that the client intends to close the socket and does not expect a response.
Stack Overflow for Teams — Collaborate and share knowledge with a private group. Create a free Team What is Teams? Collectives on Stack Overflow. Learn more. SocketException: Software caused connection abort: socket write error when resubmitting the request Ask Question.
Asked 3 years, 3 months ago. Active 3 years, 3 months ago. Viewed 6k times. What can not be said about the TCP server, the first request leaves and is handled correctly, but when you try to send the following request, throws this exception: java. SocketException: Software caused connection abort: socket write error at java. Add a comment.
0コメント