title: Use OkHttp to upload file but occur java.lang.IllegalStateException : closed at okio.RealBufferedSink.write(RealBufferedSink.java:44)
body: <p>The issue is what the title said. It only occur sometimes and some phone. Hear is the log that I caught.</p>
  
  <pre><code>java.lang.IllegalStateException
  closed
  okio.RealBufferedSink.write(RealBufferedSink.java:44)
  okio.ForwardingSink.write(ForwardingSink.java:35)
  com.******.******.network.UploadRequestBody$1.write(UploadRequestBody.java:75)
  okio.RealBufferedSink.emitCompleteSegments(RealBufferedSink.java:176)
  okio.RealBufferedSink.writeAll(RealBufferedSink.java:104)
  com.squareup.okhttp.RequestBody$3.writeTo(RequestBody.java:118)
  com.squareup.okhttp.MultipartBuilder$MultipartRequestBody.writeOrCountBytes(MultipartBuilder.java:277)
  com.squareup.okhttp.MultipartBuilder$MultipartRequestBody.writeTo(MultipartBuilder.java:297)
  com.******.******.network.UploadRequestBody.writeTo(UploadRequestBody.java:59)
  com.squareup.okhttp.internal.http.HttpEngine$NetworkInterceptorChain.proceed(HttpEngine.java:718)
  com.squareup.okhttp.internal.http.HttpEngine.readResponse(HttpEngine.java:576)
  com.squareup.okhttp.Call.getResponse(Call.java:287)
  com.squareup.okhttp.Call$ApplicationInterceptorChain.proceed(Call.java:243)
  com.squareup.okhttp.Call.getResponseWithInterceptorChain(Call.java:205)
  com.squareup.okhttp.Call.access$100(Call.java:35)
  com.squareup.okhttp.Call$AsyncCall.execute(Call.java:171)
  com.squareup.okhttp.internal.NamedRunnable.run(NamedRunnable.java:33)
  java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
  java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
  java.lang.Thread.run(Thread.java:848)
  </code></pre>
  
  <p>Would you mind helping me and telling how to avoid it?</p>