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

Software casued connection abort while switching network #65

Open
AshwinN796 opened this issue Jul 14, 2022 · 1 comment
Open

Software casued connection abort while switching network #65

AshwinN796 opened this issue Jul 14, 2022 · 1 comment
Labels

Comments

@AshwinN796
Copy link

AshwinN796 commented Jul 14, 2022

Describe the bug
Hello, i am facing strange issue while uploading file from android device using tus client. It gives "javax.net.ssl.SSLException: Write error: ssl=0xb400007824f03618: I/O error during system call, Software caused connection abort" exception

To Reproduce
Steps to reproduce the behavior:

  1. Start file upload using wifi connection
  2. Then switch network from Wifi to mobile network
  3. See error

Error
javax.net.ssl.SSLException: Write error: ssl=0xb400007824f03618: I/O error during system call, Software caused connection abort
at com.google.android.gms.org.conscrypt.NativeCrypto.SSL_write(Native Method)
at com.google.android.gms.org.conscrypt.NativeSsl.write(:com.google.android.gms@222413044@22.24.13 (190400-455379205):3)
at com.google.android.gms.org.conscrypt.ConscryptFileDescriptorSocket$SSLOutputStream.write(:com.google.android.gms@222413044@22.24.13 (190400-455379205):5)
at com.android.okhttp.okio.Okio$1.write(Okio.java:78)
at com.android.okhttp.okio.AsyncTimeout$1.write(AsyncTimeout.java:157)
at com.android.okhttp.okio.RealBufferedSink.emitCompleteSegments(RealBufferedSink.java:177)
at com.android.okhttp.okio.RealBufferedSink.write(RealBufferedSink.java:47)
at com.android.okhttp.internal.http.Http1xStream$ChunkedSink.write(Http1xStream.java:327)
at com.android.okhttp.okio.RealBufferedSink.emitCompleteSegments(RealBufferedSink.java:177)
at com.android.okhttp.okio.RealBufferedSink$1.write(RealBufferedSink.java:199)
at io.tus.java.client.TusUploader.uploadChunk(TusUploader.java:190)

@AshwinN796 AshwinN796 added the bug label Jul 14, 2022
@Acconut
Copy link
Member

Acconut commented Jul 16, 2022

I haven't seen this error personally, but I assume this error is not preventable when switching the network. However, this is not a problem since tus is built for the purpose of resuming after such errors. Please use the TusExecutor class as shown in the usage example in the README: https://github.com/tus/tus-android-client#usage It allows you to easily recover from these errors and resume uploading.

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

No branches or pull requests

2 participants