Questions tagged [socket-timeout-exception]

Signals that a timeout has occurred on a socket read or accept.

These exceptions are often occurring in a Java Platform, so read more in:

Class SocketTimeoutException

260 questions
0
votes
1 answer

Android: use HttpsUrlConnection for upload and get response but got SocketTimeoutException

I have a server with SSL certificate. And I am using functions uploadFileHttps(...) to upload an image and get corresponding response with HttpsUrlConnection. For the upload part, it sent out the image data through output stream. However, server…
Season
  • 1,178
  • 2
  • 22
  • 42
0
votes
1 answer

Loadrunner WebServices Error socket connection aborted

I'm hitting a nettcp based WCF Service using LR VuGen 12.02 and Web Services protocol by importing the WSDL of the Service. After composing a request and trying to send it, I'm getting the following error. which actually works fine from the WPF…
0
votes
1 answer

Reading URL, getting read times out error

Hi I am using following code to reading URL: import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.net.HttpURLConnection; import java.net.URL; import java.net.URLEncoder; public class…
0
votes
1 answer

Google Cloud Storage - SocketTimeoutException when rewriting a big object to "nearline" bucket

Environment: Java client ("google-api-services-storage", "v1-rev33-1.20.0") using JSON API (com.google.api.services.storage.Storage class). Goal: Move a large object from "standard" to "nearline" bucket using Java client (file size is 512…
0
votes
0 answers

java.net.SocketTimeoutException is not always thrown

I'm writing a Java program running on an embedded device with a custom Linux dist and using a RESTful API. I want that this program keep going even if the Internet connection goes down. To ensure that, I set a specified connection timeout but it…
didil
  • 693
  • 8
  • 22
0
votes
0 answers

Timeout on socket

I have the following method (Coming from this repo) private void runVpnConnection() { configure(); FileInputStream in = new FileInputStream(mInterface.getFileDescriptor()); FileOutputStream out = new…
Liam de Haas
  • 1,258
  • 3
  • 18
  • 39
0
votes
1 answer

Parse.com httpRequest timeout

I am using Parse.com's httpRequest to retrieve the source code of a website. Code: Parse.Cloud.define("extract_website_simple", function(request, response) { return Parse.Cloud.httpRequest({url: 'http://bet.hkjc.com/marksix/index.aspx?lang=en'…
pearmak
  • 4,979
  • 15
  • 64
  • 122
0
votes
0 answers

FATAL EXCEPTION: AsyncTask #3 in android

I am working with ksoap2 webservices,i am getting the exception after some time when i am trying to login my app,this exception raise after some time when i am trying to login my app.. my logcat: 01-20 12:04:40.669: E/AndroidRuntime(5805): FATAL…
0
votes
1 answer

Karma/PhantomJS works on Windows, same config on Linux fails to send messages to PhantomJS

I had an existing build using Maven, Karma, PhantomJS, and Jasmine working in Windows7, using a Cygwin Bash shell. I'm now trying to get the same build running on a CentOS VM pointing to the same workspace. When I run Karma on the VM, it starts…
David M. Karr
  • 14,317
  • 20
  • 94
  • 199
0
votes
2 answers

Handle if response is delayed in HTTP connection in Android

I am making an HTTP request. I want to put a check that if i don't get response within 10 seconds, i would quit the loop. Below is my code. What could be the easiest way to handle this while making an HTTP request. Suggestions welcomed. If you can…
0
votes
1 answer

TCP timeout after receiving a RST

I am trying to understand an issue between an NFS client and Server. When the server application crashes, the kernel sends a RST packet to client to which the client closes the old connection and initiates a new one by sending a SYN. Since the…
0
votes
1 answer

Unable to catch SocketTimeoutExeption

I am attempting to catch a SocketTimeoutException so that my socket remains active and I can continue reading through my program. Unfortunately, no matter how I attempt to catch the read timeout I can't and therefore the application closes. I have a…
Elliott
  • 147
  • 2
  • 11
0
votes
1 answer

Codename one java.net.SocketTimeoutException

I'm working on a project on Codename One in which I need to check certain addresses. If the address doesn't exist, a variable in my code, named lectura should be 404. However when I find an address which doesn't exist, my code stops and displays a…
StOchastiC_
  • 133
  • 8
0
votes
1 answer

socket read timed out - should I go for 0 (inifite)

I'm downloading a big file (say around 100mb) and I'm receiving SocketException: Read timed out every now and then. I'm thinking of raising the socket timeout. Actually, I'm thinking of setting the socket timeout to 0 (infinite) as eventually the…
0
votes
0 answers

java.net.SocketTimeoutException: Accept timed out

Can anyone tell me how to resolve this exception? Ftp server running public IP, so when I try to access server and then download file that time the download file size is 0 byte only. Showing this Exception ERROR [FTPClient] 7 Mar 2014 17:08:53.703…
user3392522
  • 1
  • 1
  • 2