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

SocketTimeoutException on slow networks #864

Open
bekirtaskin opened this issue Oct 20, 2024 · 0 comments
Open

SocketTimeoutException on slow networks #864

bekirtaskin opened this issue Oct 20, 2024 · 0 comments

Comments

@bekirtaskin
Copy link

Hi,

I am simulating slow network and getting timeout exeption. Is there a way to set timeout duration?

E/ExoPlayerImplInternal(13919): Playback error
E/ExoPlayerImplInternal(13919): androidx.media3.exoplayer.ExoPlaybackException: Source error
E/ExoPlayerImplInternal(13919): at androidx.media3.exoplayer.ExoPlayerImplInternal.handleIoException(ExoPlayerImplInternal.java:736)
E/ExoPlayerImplInternal(13919): at androidx.media3.exoplayer.ExoPlayerImplInternal.handleMessage(ExoPlayerImplInternal.java:708)
E/ExoPlayerImplInternal(13919): at android.os.Handler.dispatchMessage(Handler.java:102)
E/ExoPlayerImplInternal(13919): at android.os.Looper.loopOnce(Looper.java:205)
E/ExoPlayerImplInternal(13919): at android.os.Looper.loop(Looper.java:294)
E/ExoPlayerImplInternal(13919): at android.os.HandlerThread.run(HandlerThread.java:67)

E/ExoPlayerImplInternal(13919): Caused by: androidx.media3.datasource.HttpDataSource$HttpDataSourceException: java.net.SocketTimeoutException: timeout
E/ExoPlayerImplInternal(13919): at androidx.media3.datasource.DefaultHttpDataSource.read(DefaultHttpDataSource.java:474)
E/ExoPlayerImplInternal(13919): at androidx.media3.datasource.DefaultDataSource.read(DefaultDataSource.java:281)
E/ExoPlayerImplInternal(13919): at androidx.media3.datasource.StatsDataSource.read(StatsDataSource.java:94)
E/ExoPlayerImplInternal(13919): at androidx.media3.extractor.DefaultExtractorInput.readFromUpstream(DefaultExtractorInput.java:293)
E/ExoPlayerImplInternal(13919): at androidx.media3.extractor.DefaultExtractorInput.read(DefaultExtractorInput.java:70)
E/ExoPlayerImplInternal(13919): at androidx.media3.extractor.ts.TsExtractor.fillBufferWithAtLeastOnePacket(TsExtractor.java:570)
E/ExoPlayerImplInternal(13919): at androidx.media3.extractor.ts.TsExtractor.read(TsExtractor.java:450)
E/ExoPlayerImplInternal(13919): at androidx.media3.exoplayer.hls.BundledHlsMediaChunkExtractor.read(BundledHlsMediaChunkExtractor.java:102)
E/ExoPlayerImplInternal(13919): at androidx.media3.exoplayer.hls.HlsMediaChunk.feedDataToExtractor(HlsMediaChunk.java:503)
E/ExoPlayerImplInternal(13919): at androidx.media3.exoplayer.hls.HlsMediaChunk.loadMedia(HlsMediaChunk.java:467)
E/ExoPlayerImplInternal(13919): at androidx.media3.exoplayer.hls.HlsMediaChunk.load(HlsMediaChunk.java:424)
E/ExoPlayerImplInternal(13919): at androidx.media3.exoplayer.upstream.Loader$LoadTask.run(Loader.java:421)
E/ExoPlayerImplInternal(13919): at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
E/ExoPlayerImplInternal(13919): at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:644)
E/ExoPlayerImplInternal(13919): at java.lang.Thread.run(Thread.java:1012)

E/ExoPlayerImplInternal(13919): Caused by: java.net.SocketTimeoutException: timeout
E/ExoPlayerImplInternal(13919): at com.android.okhttp.okio.Okio$3.newTimeoutException(Okio.java:214)
E/ExoPlayerImplInternal(13919): at com.android.okhttp.okio.AsyncTimeout.exit(AsyncTimeout.java:263)
E/ExoPlayerImplInternal(13919): at com.android.okhttp.okio.AsyncTimeout$2.read(AsyncTimeout.java:217)
E/ExoPlayerImplInternal(13919): at com.android.okhttp.okio.RealBufferedSource.read(RealBufferedSource.java:51)
E/ExoPlayerImplInternal(13919): at com.android.okhttp.internal.http.Http1xStream$FixedLengthSource.read(Http1xStream.java:395)
E/ExoPlayerImplInternal(13919): at com.android.okhttp.okio.RealBufferedSource$1.read(RealBufferedSource.java:372)
E/ExoPlayerImplInternal(13919): at androidx.media3.datasource.DefaultHttpDataSource.readInternal(DefaultHttpDataSource.java:777)
E/ExoPlayerImplInternal(13919): at androidx.media3.datasource.DefaultHttpDataSource.read(DefaultHttpDataSource.java:472)
E/ExoPlayerImplInternal(13919): ... 14 more

E/ExoPlayerImplInternal(13919): Caused by: java.net.SocketException: Socket closed
E/ExoPlayerImplInternal(13919): at java.net.SocketInputStream.read(SocketInputStream.java:188)
E/ExoPlayerImplInternal(13919): at java.net.SocketInputStream.read(SocketInputStream.java:143)
E/ExoPlayerImplInternal(13919): at com.android.org.conscrypt.ConscryptEngineSocket$SSLInputStream.readFromSocket(ConscryptEngineSocket.java:983)
E/ExoPlayerImplInternal(13919): at com.android.org.conscrypt.ConscryptEngineSocket$SSLInputStream.processDataFromSocket(ConscryptEngineSocket.java:947)
E/ExoPlayerImplInternal(13919): at com.android.org.conscrypt.ConscryptEngineSocket$SSLInputStream.readUntilDataAvailable(ConscryptEngineSocket.java:862)
E/ExoPlayerImplInternal(13919): at com.android.org.conscrypt.ConscryptEngineSocket$SSLInputStream.read(ConscryptEngineSocket.java:835)
E/ExoPlayerImplInternal(13919): at com.android.okhttp.okio.Okio$2.read(Okio.java:138)
E/ExoPlayerImplInternal(13919): at com.android.okhttp.okio.AsyncTimeout$2.read(AsyncTimeout.java:213)
E/ExoPlayerImplInternal(13919): ... 19 more

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

No branches or pull requests

1 participant