TCP/IP Connection Reset --- request Timeout

send a request and it returns with timeout

  • Integration Team are Using Fortigate as a firewall and NGINX for some reasons
  • so we use VPN TO Access , requests always succeed but at once it failed with timeout in randomize request not specific one
  • we are using URLSession as a network layer
  • when I retry the same failed request again, it success
  • the request cannot connect apigee
  • Sec Team concern {

app session hits the security gateway with lots of SYN step to try to initiate a new session and doesn’t wait for (SYN-ACK / ACK) steps to happen to make sure the connection initiated correctly and gateway consider it flooding attack }

Answered by DTS Engineer in 839701022

You haven’t asked a question, so all I can do is post general advice:

  • If you’re using URLSession, you have very little control over the on-the-wire behaviour resulting from your network requests.

  • If you’d like to see that behaviour change, you can file a bug about that.

  • However, if this is a server (or middlebox) that you control then I recommend that you investigate reconfiguring it to support the access pattern generated by iOS. That’s the fastest path to a solution here.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

You haven’t asked a question, so all I can do is post general advice:

  • If you’re using URLSession, you have very little control over the on-the-wire behaviour resulting from your network requests.

  • If you’d like to see that behaviour change, you can file a bug about that.

  • However, if this is a server (or middlebox) that you control then I recommend that you investigate reconfiguring it to support the access pattern generated by iOS. That’s the fastest path to a solution here.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

I ask for any specific configuration for URLSession To make TCP not fail or that from server side ? & I ask for what I suppose to do from mobile side to solve this timeout request? integration team saw that problem was from client side and for me I see it's from server side.

We’re talking about HTTP here, right? What version of HTTP does your server support?

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

Yes, and specifically is HTTTPS I send my requests by HTTP/1.1 and the server support HTTP/1.2 @DTS Engineer

TCP/IP Connection Reset --- request Timeout
 
 
Q