locked
Why is the data transfer speed from the server being cut during the stream? RRS feed

  • Question

  • User186412161 posted

    There is an ASP. NET application running on a VPS server. (Channel width 200 mb \ s). It works as follows: data is transferred from the client to the server and immediately to the browser (about 1.5 mb / s). When I run on IIS Express everything works as expected, but when sending to a remote server, the send speed is cut, while the receive speed remains at the level of (1.5mb / s).

    There is only one answer - the problem is in the VPS server, but as soon as I stop sending data, the sending speed rises to the desired 1.5 mb / s. I have been struggling with the problem for several months now. I changed the hosting provider but does not help. What's the matter ??

    Tried different VPS configurations. Up to 5 cores, 10 GB of RAM and 1 GB / s channel width. Even on the most powerful configuration, the problem is the same.

    SignalR is used for data transfer (with Forced use of WebSocket). The site is hosted on IIS.

    After searching for answers in other forums, I came to the conclusion that the problem is in SignalR.
     
    Here is the code, the code that is on the sender client (1st picture)

    On the Hub (Fig. 2)

    On the JS client - the recipient.
    Can you advise something.

    1) https://drive.google.com/open?id=1hUqBnNpm5-R3Jk4vD7OeEnO0ZsA0uaNh

    2) https://drive.google.com/open?id=1hUqBnNpm5-R3Jk4vD7OeEnO0ZsA0uaNh

    3) https://drive.google.com/open?id=1hUqBnNpm5-R3Jk4vD7OeEnO0ZsA0uaNh

    Thursday, October 3, 2019 5:30 PM

All replies

  • User61956409 posted

    Hi mikhail.matyasov,

    Welcome to ASP.NET forums.

    When I run on IIS Express everything works as expected, but when sending to a remote server, the send speed is cut, while the receive speed remains at the level of (1.5mb / s).

    For better understand and troubble issue, I'd like to confirm following information with you:

    • What is VPS server you are using now
    • Whether your test clients and VPS server are in same region

    With Regards,

    Fei Han

    Friday, October 4, 2019 2:52 AM
  • User186412161 posted

    1) Now, i am using https://cloud4box.com/

    2) Test client it is my PC.  The server is in another city (about 500 km)

    Friday, October 4, 2019 10:17 PM
  • User61956409 posted

    Hi mikhail.matyasov,

    Here is the code, the code that is on the sender client (1st picture)

    On the Hub (Fig. 2)

    On the JS client - the recipient.

    The 3 links that you posted are same, please update them, so that we can know more about your sender client, SignalR hub and SignalR js client.

    With Regards,

    Fei Han

    Wednesday, October 9, 2019 7:24 AM