| @@ -881,17 +881,17 @@ public: | |||||
| connection = nullptr; | connection = nullptr; | ||||
| } | } | ||||
| bool connect (WebInputStream::Listener* webInputListener, int attemptNumber = 0) | |||||
| bool connect (WebInputStream::Listener* webInputListener, int numRetries = 0) | |||||
| { | { | ||||
| createConnection(); | createConnection(); | ||||
| if (! connection->start (owner, webInputListener)) | if (! connection->start (owner, webInputListener)) | ||||
| { | { | ||||
| // Workaround for deployment targets below 10.10 where HTTPS POST requests with keep-alive fail with the NSURLErrorNetworkConnectionLost error code. | // Workaround for deployment targets below 10.10 where HTTPS POST requests with keep-alive fail with the NSURLErrorNetworkConnectionLost error code. | ||||
| #if ! (JUCE_IOS || (defined (__MAC_OS_X_VERSION_MIN_REQUIRED) && defined (__MAC_10_10) && __MAC_OS_X_VERSION_MIN_REQUIRED >= __MAC_10_10)) | #if ! (JUCE_IOS || (defined (__MAC_OS_X_VERSION_MIN_REQUIRED) && defined (__MAC_10_10) && __MAC_OS_X_VERSION_MIN_REQUIRED >= __MAC_10_10)) | ||||
| if (attemptNumber == 0 && connection->nsUrlErrorCode == NSURLErrorNetworkConnectionLost) | |||||
| if (numRetries == 0 && connection->nsUrlErrorCode == NSURLErrorNetworkConnectionLost) | |||||
| { | { | ||||
| connection = nullptr; | connection = nullptr; | ||||
| return connect (webInputListener, ++attemptNumber); | |||||
| return connect (webInputListener, ++numRetries); | |||||
| } | } | ||||
| #endif | #endif | ||||