Giter Site home page Giter Site logo

Comments (10)

xiaxinqing avatar xiaxinqing commented on May 24, 2024

@getActivity 轮子哥,这应该不算是bug,不过还是感觉首次是初始化了什么东西? 有时候甚至是达到700毫秒

from easyhttp.

getActivity avatar getActivity commented on May 24, 2024
image

from easyhttp.

getActivity avatar getActivity commented on May 24, 2024

小伙子,我测试了,确实存在这个问题,但是需要一些时间排查,目前我手头工作比较繁忙,我会尽量在这两天去处理这个问题。

from easyhttp.

xiaxinqing avatar xiaxinqing commented on May 24, 2024

好的,轮子哥修复后,艾特一下。我来替换新版本

from easyhttp.

getActivity avatar getActivity commented on May 24, 2024
recordTime = SystemClock.uptimeMillis();
OkHttpClient client = new OkHttpClient();
//创建表单请求参数
FormBody.Builder builder = new FormBody.Builder();
builder.add("name", "zhangsan");
builder.add("age", "18");
FormBody formBody = builder.build();
Request request = new Request.Builder()
        .url("https://www.wanandroid.com/article/query/0/json")
        .post(formBody)
        .build();
client.newCall(request).enqueue(new Callback() {
    @Override
    public void onFailure(Call call, IOException e) {

    }
    @Override
    public void onResponse(Call call, Response response) throws IOException {
        System.out.println("EasyHttp Response 本次请求耗时:" + (response.receivedResponseAtMillis() - response.sentRequestAtMillis()));
        System.out.println("EasyHttp Start RequestConsuming 本次请求耗时:" + (SystemClock.uptimeMillis() - recordTime));
    }
});

from easyhttp.

getActivity avatar getActivity commented on May 24, 2024
image

from easyhttp.

getActivity avatar getActivity commented on May 24, 2024

小伙子,我用原生的 OkHttp 测试也有这个问题,那这个不是框架的问题了,你可能就要反馈给 OkHttp 官方了

from easyhttp.

xiaxinqing avatar xiaxinqing commented on May 24, 2024

那我借用轮子哥的截图,去okhttp那里贴一个issues

from easyhttp.

getActivity avatar getActivity commented on May 24, 2024

square/okhttp#7885

from easyhttp.

getActivity avatar getActivity commented on May 24, 2024

小伙子,我看到你在 OkHttp Github 上面提的 issue,建议小伙子你可以做进一步的排查,看看 OkHttp 是在哪些方法耗时比较长的,有详细的结果了再提交给 OkHttp 官方人员,还有要注意使用英文提问。

from easyhttp.

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.