Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Best HTTP Released

Discussion in 'Assets and Asset Store' started by BestHTTP, Sep 11, 2013.

  1. LexaMV

    LexaMV

    Joined:
    Feb 20, 2018
    Posts:
    28
    thanks this is a working solution!

    But what is the best way to solve this problem? If you need to send 10 requests in a row, is it possible to create a queue in BestHTTP? I didn't find anything in the documentation
     
  2. BestHTTP

    BestHTTP

    Joined:
    Sep 11, 2013
    Posts:
    1,653
    @LexaMV

    The plugin limits only the number of connections per server, so if you send out 10 requests in a row to the same host a maximum of 6 HTTP/1 connections will be created.
    If the plugin can use an HTTP/2 connection then only one connection will be created and the negotiated parallellism will be used with that one connection.
     
  3. LexaMV

    LexaMV

    Joined:
    Feb 20, 2018
    Posts:
    28
    Hello. Is it possible to see the full request body in the logs? Couldn't find it in the documentation.
     
  4. BestHTTP

    BestHTTP

    Joined:
    Sep 11, 2013
    Posts:
    1,653
    @LexaMV

    No, the body isn't. If you want to debug your requests locally, i would recommend to set up a proxy, and route the requests through it.
    You can set proxy globally for all requests:
    Code (CSharp):
    1. HTTPManager.Proxy = new HTTPProxy(new Uri(proxyURL), null, true);
    Or per-request, setting the request's Proxy property.
     
  5. unity_ACE8B55FE846915D12E9

    unity_ACE8B55FE846915D12E9

    Joined:
    Oct 14, 2021
    Posts:
    2
    Hello, there's a problem. When sending a request to playfab an exception "Server closing the connection!" occurred. All the following requests ended with the same message. Only restarting the application helped.

    What caused this problem? How to solve it?
     
  6. BestHTTP

    BestHTTP

    Joined:
    Sep 11, 2013
    Posts:
    1,653
    Could you follow the logging steps here under Reporting Bugs and send over the log entries?
     
  7. unity_ACE8B55FE846915D12E9

    unity_ACE8B55FE846915D12E9

    Joined:
    Oct 14, 2021
    Posts:
    2
    Oh, there's no 100% reproduction yet. We'll try to find one.
    For now, we're wondering what the situation might be "Server closing the connection"
    In this code.

    upload_2023-10-26_13-2-10.png
     
  8. BestHTTP

    BestHTTP

    Joined:
    Sep 11, 2013
    Posts:
    1,653
    @unity_ACE8B55FE846915D12E9

    The server is sending a HTTP/2 Go-away frame while there's still requests in-flight. The reason might in the logs.