litesuits / litesuits/android-lite-http

小米手机上报这个问题com.litesuits.http.exception.NetException: Service Unreachable, or Network Is Unstable (服务无法访问)

Open
#24 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Java
Stars
817
Forks
337
PR merge metrics
No merged PRs in 30d

Description

把图片转成base64字符串了,两张图片可以传,多了就不行了,为什么,魅族手机没问题?
at com.litesuits.http.impl.apache.ApacheHttpClient.connectWithRetries(ApacheHttpClient.java:405)
at com.litesuits.http.LiteHttp.tryToConnectNetwork(LiteHttp.java:434)
at com.litesuits.http.LiteHttp.execute(LiteHttp.java:217)
at com.litesuits.http.LiteHttp$1.run(LiteHttp.java:268)
at com.litesuits.http.concurrent.SmartExecutor$2.run(SmartExecutor.java:179)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588)
at java.lang.Thread.run(Thread.java:818)
Caused by: javax.net.ssl.SSLException: Write error: ssl=0x9fdee800: I/O error during system call, Connection reset by peer
at com.android.org.conscrypt.NativeCrypto.SSL_write(Native Method)
at com.android.org.conscrypt.OpenSSLSocketImpl$SSLOutputStream.write(OpenSSLSocketImpl.java:771)
at org.apache.http.impl.io.AbstractSessionOutputBuffer.write(AbstractSessionOutputBuffer.java:114)
at org.apache.http.impl.io.ContentLengthOutputStream.write(ContentLengthOutputStream.java:118)
at org.apache.http.impl.io.ContentLengthOutputStream.write(ContentLengthOutputStream.java:124)
at org.apache.http.entity.StringEntity.writeTo(StringEntity.java:94)
at org.apache.http.impl.entity.EntitySerializer.serialize(EntitySerializer.java:102)
at org.apache.http.impl.AbstractHttpClientConnection.sendRequestEntity(AbstractHttpClientConnection.java:167)
at org.apache.http.impl.conn.AbstractClientConnAdapter.sendRequestEntity(AbstractClientConnAdapter.java:277)
at org.apache.http.protocol.HttpRequestExecutor.doSendRequest(HttpRequestExecutor.java:242)
at org.apache.http.protocol.HttpRequestExecutor.execute(HttpRequestExecutor.java:124)
at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:444)
at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:560)
at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:492)
at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:470)
at com.litesuits.http.impl.apache.ApacheHttpClient.connectWithRetries(ApacheHttpClient.java:277)

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with com.litesuits.http.impl.apache.ApacheHttpClient.connectWithRetries, especially the calls at lines 277 and 405 shown in the stack trace, then trace into LiteHttp.tryToConnectNetwork. The report provides no reproduction details or acceptance criteria, so the expected fix and definition of done are not specified.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, java
Domain
mobile, networking
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.