Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A SocketTimeoutException occured after restart the network. #3378

Closed
MegatronKing opened this issue May 27, 2017 · 6 comments
Closed

A SocketTimeoutException occured after restart the network. #3378

MegatronKing opened this issue May 27, 2017 · 6 comments
Labels
bug Bug in existing code
Milestone

Comments

@MegatronKing
Copy link
Contributor

I created a HTTP/2 connection, this connection remains open in a half-closed state (read time is 1 hour). After connected, I disable the network and restart. And then, I send a normal request, which was occured a SocketTimeoutException : timeout

java.net.SocketTimeoutException: timeout at okhttp3.internal.http2.Http2Stream$StreamTimeout.newTimeoutException(Http2Stream.java:593) at okhttp3.internal.http2.Http2Stream$StreamTimeout.exitAndThrowIfTimedOut(Http2Stream.java:601) at okhttp3.internal.http2.Http2Stream$FramingSink.emitFrame(Http2Stream.java:510) at okhttp3.internal.http2.Http2Stream$FramingSink.write(Http2Stream.java:481) at okio.RealBufferedSink.emitCompleteSegments(RealBufferedSink.java:171) at okio.RealBufferedSink.write(RealBufferedSink.java:85)

@ekstro
Copy link

ekstro commented May 29, 2017

Related to?

#1771 #3146 #3278

@swankjesse swankjesse added the bug Bug in existing code label Jul 31, 2017
@swankjesse
Copy link
Collaborator

I think we gotta fix this with HTTP/2 pings. Otherwise we can’t differentiate between a stalled stream and a stalled connection.

@swankjesse swankjesse added this to the 3.9 milestone Jul 31, 2017
@Kiran89kumar
Copy link

@swankjesse :Can you please let us know the tentative release date for 3.9

@swankjesse
Copy link
Collaborator

It might be a few months. If you need something urgently please use a snapshot; everything but the API is stable.

@MegatronKing
Copy link
Contributor Author

Very much looking forward to 3.9

@swankjesse swankjesse modified the milestones: 3.10, 3.9 Aug 30, 2017
@swankjesse
Copy link
Collaborator

Will implement with this:
#3268

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Bug in existing code
Projects
None yet
Development

No branches or pull requests

4 participants