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
2 answers

java.net.SocketTimeoutException: Connect timed out

An http request to any site throws a SocketTimeoutException. What could this be related to? public class Main { public static void main(String[] args) { try { HttpURLConnection connection = (HttpURLConnection) new…
0
votes
1 answer

ECONNRESET & ESOCKETTIMEDOUT errors when testing high traffic load on express.js application and RDS MySQL 5.6

I have: An express application which exposes a REST api and needs to connect to a MySQL database (see below) An AWS RDS MySQL 5.6.34 database on a db.t2.medium instance In the case of a single request or "low" traffic there are no problems, but if…
revy
  • 3,945
  • 7
  • 40
  • 85
0
votes
0 answers

How to load ConfigMaps using kubernetes-config extension

I've been following https://quarkus.io/guides/kubernetes-config in order to create a configMap and test my Quarkus service into my CDK v3.5.0-1 before to push it to OpenShift 3.11 but KubernetesConfigSourceProvider is not happy: Using: Quarkus…
0
votes
1 answer

Mongo Socket timeout on Azure web app deployed in a container

I have an Azure Web App which is deployed with docker-compose. It runs a Rails app on v5.0.0 and the mongoid version is 6.1. I've the Always On turned on (how ironic). But after a few moments of idle time, if I refresh a tab with my app already…
0
votes
0 answers

java.net.SocketTimeoutException in JAVA okhttp client and AWS server php script

I want to send a formbody using okhttp in java from the Android APP client-side to check if new file is available on the server, and handle this request through a PHP script on AWS EC2 server to send the URL to the new file back to APP. Client side…
0
votes
0 answers

what are the possible reason for java.net.SocketTimeoutException

How can I check the possible reason for java.net.SocketTimeoutException. I have a program that just pings to a website. however I am getting SocketTimeoutException. I know it is happening due to timeout expiring before the connection is established.…
0
votes
1 answer

JMeter SocketTimeout and OutofMemoryErrors

I have the following code in JSR223 Sampler and I get following errors when I run this jmeter command. Can anyone please advise if something is wrong with my code? I'm basically reading a image and changing it little bit and sending a…
0
votes
1 answer

Retrofit 2.3 Handling SocketTimeoutException

I'm currently using Retrofit 2.3 and RxAndroid for Android as my network communications. Its working fine most of the time. But sometimes, I get a SocketTimeOut exception (I'm assuming due to issues with the internet). I want to be able to handle…
0
votes
0 answers

Python3 socket settimeout() unstable during socket initiation

I'm trying to connect to a server on local_host that does nothing more than accept and close the connection. On the client initiation of the connection, I'd like to connect to server with timeout. Problem: By default, the connection timeout is 1…
0
votes
0 answers

Handle SocketTimeoutException in Apache Camel

I have a java application with Apache ServiceMix and Apache Camel. Here is my Camel Spring XML configuration:
0
votes
1 answer

Exception "java.net.ConnectException: Connection timed out: connect" is thrown before specified timeout

I have following code: import java.io.IOException; import java.net.InetSocketAddress; import java.net.Socket; public class ScoketTimeoutMain { public static void main( String[] args ) { Socket socket = new Socket(); …
Mariusz
  • 1,907
  • 3
  • 24
  • 39
0
votes
0 answers

why index only one doc takes so long time

There is a scheduler task (every ten minutes) that synchronize changed data from Oracle to ElasticSearch, but occasionally there are SocketTimeOutException java.net.SocketTimeoutException: 30,000 milliseconds timeout on connection http-outgoing-113…
0
votes
1 answer

Activemq 5.14.5 http connector Read timed out

To allow the ActiveMQ client and broker to tunnel over HTTP, I'm following the reference documentation http-and-https-transports-reference and I add in activemq.xml file: Starting activemq…
0
votes
1 answer

Trying to connect socket to server in different networks raises WinError 10060

I am trying to establish a socket connection, therefore I coded and tried this example code with server.py and client.py: server.py: import socket port = 5674 ip = socket.gethostbyname(socket.gethostname()) s = socket.socket() s.bind((ip,…
FinnK
  • 210
  • 4
  • 10
0
votes
2 answers

Socket timeout not respected with multiple threads in Java?

I have a java program that spawns out 4 threads. In each thread, I have multiple socket timeouts. However, it seems that these timeouts are not respected i.e. the readLine() function might block for a longer period of time. I want the following…
user10
  • 2,126
  • 5
  • 19
  • 26