HomeiOS Developmentios - UnityWebRequest fail at dangerous connection, and doesn’t recuperate when connection...

ios – UnityWebRequest fail at dangerous connection, and doesn’t recuperate when connection is restored


So I’ve an utility that makes use of UnityWebRequest to speak with server utilizing http

I’m additionally utilizing Charles to simulate dangerous web connection, however the issue additionally occurs in actual life eventualities

So I’m taking part in the sport, every part is ok, then I make my web connection dangerous and after some time I get Socket: Damaged pipe (Write failed) failure on my requests. No downside thus far, connection is tremendous dangerous, in order that’s anticipated.

However then I make my connection good once more, however requests by no means recuperate. Immediately after sending a request, I get the identical error, for all my requests, on a regular basis.

Downside resolves itself after I transfer the app into background and again.

I’ve exhausted all my information and concepts on repair the issue and I’m caught. So please, what might be a purpose for this taking place and the way can I remedy this?

I’ve checked each piece of my code that will get invoked when app strikes into background or foreground, but it surely doesn’t assist. Solely really doing that helps.

Going by the reply to this thread, I’ve tried disabling useHttpContinue for my requests, but it surely would not assist both

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

Recent Comments