java.net.SocketTimeoutException

timeout

Samebug tips2

It's possible you're trying to write to a connection that's already closed. Another cause for this is that you closed the socket with unread data in the socket receive buffer.


rafaelrafael

This might be caused by unmatching versions of SSL. Java starts normally with SSLv2 and your server might not be able to negotiate. You have to force Java to use SSLv3. See this comment: https://goo.gl/hx0YB3


rafaelrafael

Don't give up yet. Our experts can help. Paste your full stack trace to get a solution.

Solutions on the web2553

  • via GitHub by wrsuarez
    ,
  • via GitHub by ik-z
    ,
  • Stack trace

    • java.net.SocketTimeoutException: timeout at okio.Okio$3.newTimeoutException(Okio.java:210)[graylog.jar:?] at okio.AsyncTimeout.exit(AsyncTimeout.java:288)[graylog.jar:?] at okio.AsyncTimeout$2.read(AsyncTimeout.java:242)[graylog.jar:?] at okio.RealBufferedSource.indexOf(RealBufferedSource.java:325)[graylog.jar:?] at okio.RealBufferedSource.indexOf(RealBufferedSource.java:314)[graylog.jar:?] at okio.RealBufferedSource.readUtf8LineStrict(RealBufferedSource.java:210)[graylog.jar:?] at okhttp3.internal.http.Http1xStream.readResponse(Http1xStream.java:186)[graylog.jar:?] at okhttp3.internal.http.Http1xStream.readResponseHeaders(Http1xStream.java:127)[graylog.jar:?] at okhttp3.internal.http.CallServerInterceptor.intercept(CallServerInterceptor.java:53)[graylog.jar:?] at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:92)[graylog.jar:?] at okhttp3.internal.connection.ConnectInterceptor.intercept(ConnectInterceptor.java:45)[graylog.jar:?] at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:92)[graylog.jar:?] at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:67)[graylog.jar:?] at okhttp3.internal.cache.CacheInterceptor.intercept(CacheInterceptor.java:109)[graylog.jar:?] at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:92)[graylog.jar:?] at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:67)[graylog.jar:?] at okhttp3.internal.http.BridgeInterceptor.intercept(BridgeInterceptor.java:93)[graylog.jar:?] at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:92)[graylog.jar:?] at okhttp3.internal.http.RetryAndFollowUpInterceptor.intercept(RetryAndFollowUpInterceptor.java:124)[graylog.jar:?] at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:92)[graylog.jar:?] at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:67)[graylog.jar:?] at org.graylog2.rest.RemoteInterfaceProvider.lambda$get$0(RemoteInterfaceProvider.java:59)[graylog.jar:?] at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:92)[graylog.jar:?] at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:67)[graylog.jar:?] at okhttp3.RealCall.getResponseWithInterceptorChain(RealCall.java:170)[graylog.jar:?] at okhttp3.RealCall.execute(RealCall.java:60)[graylog.jar:?] at retrofit2.OkHttpCall.execute(OkHttpCall.java:174)[graylog.jar:?] at org.graylog2.shared.rest.resources.ProxiedResource.lambda$null$0(ProxiedResource.java:76)[graylog.jar:?] at java.util.concurrent.FutureTask.run(FutureTask.java:266)[?:1.8.0_102] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)[?:1.8.0_102] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)[?:1.8.0_102] at java.lang.Thread.run(Thread.java:745)[?:1.8.0_102] Caused by: java.net.SocketException: Socket closed at java.net.SocketInputStream.read(SocketInputStream.java:203)[?:1.8.0_102] at java.net.SocketInputStream.read(SocketInputStream.java:141)[?:1.8.0_102] at okio.Okio$2.read(Okio.java:138)[graylog.jar:?] at okio.AsyncTimeout$2.read(AsyncTimeout.java:238)[graylog.jar:?] ... 29 more

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    Agócs TamásAgócs Tamás
    2129 times, last one
    gamebusterzgamebusterz
    2 times, last one
    HronomHronom
    Once,
    aldrinlealaldrinleal
    11 times, last one
    tvrmsmithtvrmsmith
    Once,
    283 more bugmates