Coder Social home page Coder Social logo

http请求cancel问题 about xutils3 HOT 5 CLOSED

wyouflf avatar wyouflf commented on July 3, 2024
http请求cancel问题

from xutils3.

Comments (5)

wyouflf avatar wyouflf commented on July 3, 2024

错误信息是什么?

from xutils3.

wyouflf avatar wyouflf commented on July 3, 2024

修复了一个偶发的cancel的问题, 不知道和你遇到的问题是否一样 : ba648c7

from xutils3.

cr1944 avatar cr1944 commented on July 3, 2024

java.net.SocketException: Socket closed
at libcore.io.Posix.recvfromBytes(Native Method)
at libcore.io.Posix.recvfrom(Posix.java:141)
at libcore.io.BlockGuardOs.recvfrom(BlockGuardOs.java:164)
at libcore.io.IoBridge.recvfrom(IoBridge.java:506)
at java.net.PlainSocketImpl.read(PlainSocketImpl.java:489)
at java.net.PlainSocketImpl.access$000(PlainSocketImpl.java:46)
at java.net.PlainSocketImpl$PlainSocketInputStream.read(PlainSocketImpl.java:241)
at java.io.InputStream.read(InputStream.java:162)
at java.io.BufferedInputStream.fillbuf(BufferedInputStream.java:142)
at java.io.BufferedInputStream.read(BufferedInputStream.java:227)
at com.android.okhttp.internal.Util.readAsciiLine(Util.java:316)
at com.android.okhttp.internal.http.RawHeaders.fromBytes(RawHeaders.java:308)
at com.android.okhttp.internal.http.HttpTransport.readResponseHeaders(HttpTransport.java:135)
at com.android.okhttp.internal.http.HttpEngine.readResponse(HttpEngine.java:644)
at com.android.okhttp.internal.http.HttpURLConnectionImpl.execute(HttpURLConnectionImpl.java:347)
at com.android.okhttp.internal.http.HttpURLConnectionImpl.getResponse(HttpURLConnectionImpl.java:296)
at com.android.okhttp.internal.http.HttpURLConnectionImpl.getResponseCode(HttpURLConnectionImpl.java:503)
at com.networkbench.agent.impl.instrumentation.NBSHttpURLConnectionExtension.getResponseCode(SourceFile:180)
at org.xutils.http.request.HttpRequest.sendRequest(HttpRequest.java:189)
at org.xutils.http.loader.StringLoader.load(StringLoader.java:44)
at org.xutils.http.loader.StringLoader.load(StringLoader.java:16)
at org.xutils.http.request.UriRequest.loadResult(UriRequest.java:81)
at org.xutils.http.request.HttpRequest.loadResult(HttpRequest.java:234)
at org.xutils.http.HttpTask$RequestWorker.run(HttpTask.java:496)

from xutils3.

cr1944 avatar cr1944 commented on July 3, 2024
                                                                                               java.net.ProtocolException: unexpected end of stream
                                                                                                   at com.android.okhttp.internal.http.HttpTransport$FixedLengthOutputStream.close(HttpTransport.java:253)
                                                                                                   at com.android.okhttp.internal.http.HttpEngine.readResponse(HttpEngine.java:636)
                                                                                                   at com.android.okhttp.internal.http.HttpURLConnectionImpl.execute(HttpURLConnectionImpl.java:347)
                                                                                                   at com.android.okhttp.internal.http.HttpURLConnectionImpl.getResponse(HttpURLConnectionImpl.java:296)
                                                                                                   at com.android.okhttp.internal.http.HttpURLConnectionImpl.getResponseCode(HttpURLConnectionImpl.java:503)
                                                                                                   at com.networkbench.agent.impl.instrumentation.NBSHttpURLConnectionExtension.getResponseCode(SourceFile:180)
                                                                                                   at org.xutils.http.request.HttpRequest.getResponseCode(HttpRequest.java:323)
                                                                                                   at org.xutils.http.HttpTask.doBackground(HttpTask.java:272)
                                                                                                   at org.xutils.common.task.TaskProxy$1.run(TaskProxy.java:62)
                                                                                                   at org.xutils.common.task.PriorityRunnable.run(PriorityRunnable.java:18)
                                                                                                   at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
                                                                                                   at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
                                                                                                   at java.lang.Thread.run(Thread.java:841)

from xutils3.

wyouflf avatar wyouflf commented on July 3, 2024

谢谢反馈, 问题已修复.

from xutils3.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.