Questions tagged [socketexception]

SocketException is the superclass of all other socket related exceptions and may be thrown during socket creation or setting options.

SocketException is the superclass of all other socket related exceptions and may be thrown during socket creation or setting options.

616 questions
6
votes
6 answers

C# SocketException doesn't get caught

i have a really weird sitation going on in my code. I'm developping a c# chat client-server application. When i close the server i want the client to be automatically closed. The client is reading from the TcpClient object using a StremReader. The…
l.moretto
  • 193
  • 1
  • 13
6
votes
1 answer

Killing a blocked UDP socket

Let's assume I have an UDP socket that was open on a certain address / port and then hanged. When I try to initialize a new UDP Socket (UDPClient) on that same address / port of course it raises a SocketException since it finds that is already in…
Saverio Terracciano
  • 3,885
  • 1
  • 30
  • 42
6
votes
4 answers

java.net.SocketException: sendto failed: EPIPE (Broken pipe) on Android

I am trying to read data from server socket from client in Android. Here are the snippets of code that I'm using: Client (On Android in JAVA) DataOutputStream dataOutputStream = null; DataInputStream dataInputStream = null; try { …
Rajesh Golani
  • 448
  • 1
  • 6
  • 13
6
votes
2 answers

Why are localhost connections blocked by the firewall?

When I listen on a port on localhost, Windows will popup a dialogue in which the user must add my program to the list of firewall exceptions. This is annoying, and requires administrator-rights, which the user may not have. Why does Windows do this…
Maestro
  • 9,046
  • 15
  • 83
  • 116
6
votes
3 answers

Error in android studio while creating a new project

I got this error message while I tried to create a new project in Android studio : Failed to import Gradle project: Error unmarshaling return header; nested exception is: java.net.SocketException: Connection reset
asep16
  • 61
  • 1
  • 3
6
votes
2 answers

HttpWebRequest Issue: System lacked sufficient buffer space or because a queue was full

I am using a service to pull in a list of hotels in the form of an XML document. All of this works fine on our dev server when testing it, however shorty after deploying it live all the pages using this are broken and are displaying this error: An…
shoughton123
  • 4,255
  • 3
  • 21
  • 23
6
votes
1 answer

java.net.SocketException: socket closed TCP Client Server Communication

I am creating a java client/server application over TCP where we have two sockets: One is for exchanging messages. Two is for file transfer. I have created in the Server two ServerSockets in order to create Socket One and Two by accepting the…
lemanou
  • 141
  • 1
  • 2
  • 8
6
votes
2 answers

Error "java.net.SocketException: Too many open files" at deployment phase in jboss-portal-2.7.2

When start the jboss-portal-2.7.2 at some point in the log message: 2013-01-30 20:32:02,541 ERROR [org.apache.tomcat.util.net.JIoEndpoint] Socket accept failed java.net.SocketException: Too many open files at…
abg
  • 2,002
  • 7
  • 39
  • 63
5
votes
1 answer

Axis web service client error

One of our customers faced this error while calling our web service. I think this is because a connection problems from his side, but I need to know the exact reason. Stack trace: Error while calling 10108831-402TV04LF from Thread 1 occurred after…
Muhammad Hewedy
  • 29,102
  • 44
  • 127
  • 219
5
votes
4 answers

Java SocketException: No buffer space available

My java code use several threads, each thread run a ServerSocket and goes in accept. These threads communicate each other using java socket. With 121 threads all work at well, but if I run same code with 256 thread I have this…
tulkas85
  • 1,103
  • 1
  • 17
  • 43
5
votes
2 answers

ASP.NET Core 3.0 React app errors: failed to proxy

(FYI, this is my first Microsoft project of any type and I am not familiar with technologies like proxy servers, etc so my description of the issues may not be the greatest). I have been working on an ASP.NET Core 3.0 (preview) React app for the…
user2639325
  • 59
  • 1
  • 1
  • 5
5
votes
1 answer

Unexpected server response (0) while retrieving pdf

We are specifically getting this error when using Amazon ec2 instance. Configuration on aws instance is Tomcat 7, Ubuntu 16.04 and memory is 8gb. It occurs when the user tries to view pdf file. In our application, we are having one functionality…
Shantanu
  • 71
  • 2
  • 6
5
votes
1 answer

Load video from inputstream using java and video.js

I fetch inputstream from mongodb and pass it to video.js to play. It plays completely fine first time, once video is finished and I click on 'play' button to play again then i got below exception in java code java.net.SocketException: Software…
Parth Solanki
  • 3,268
  • 2
  • 22
  • 41
5
votes
1 answer

Connection reset by peer: socket write error during ftp

While trying to ftp (with implicit ssl) a file to a server, I consistently get a 'Connection Reset By Peer: Socket Write Error' or abnormally a 'Connection Aborted By Software' error. The file is uploaded to the server, but is completely empty.…
GregLimo
  • 69
  • 1
  • 4
5
votes
2 answers

How can I establish a secure channel for SSL/TLS from a handheld device?

I am trying to call a REST method from a handheld device (Windows CE / Compact framework) with this code: public static HttpWebRequest SendHTTPRequestNoCredentials(string uri, HttpMethods method, string data, string contentType) { …