Intermittent Connection Reset by Peer errors in Android connecting to .NET REST endpoint

后端 未结 1 583
忘掉有多难
忘掉有多难 2020-12-16 04:16

I\'m getting intermittent errors from devices connecting to my IIS REST service via SSL. My app works just fine, but sometimes I get this exception. It is handled properly

相关标签:
1条回答
  • 2020-12-16 04:58

    It seems like a timeout issue occurring on the client side causing for this exception on your server side. I've seen this happening on an upload method I have on my service, since it takes sometime to upload the file the chances the mobile will move between networks are quite high and that might cause this issue.

    I would examine the following solutions:

    1. Try and figure if its a certain mobile device manufacturer that causes your logs to flood with those exceptions. I've experienced cases where the manufacturer network handling was behaving differently from other brands. In case you do find that there is a specific brand causing this you might extend the default timeout on that specific device or further investigate and try to reproduce on that device.
    2. I would also examine if the clients causing those exceptions are timed out because of a latency issue for that specific called method. maybe certain customers are experiencing a certain performance issue while calling a certain method. If it is a performance issue you probably going to fix it on the server side and there is no use of investigating the client side.

    Please update if you have any further details.

    0 讨论(0)
提交回复
热议问题