<BUG>return sendRequest(httpRequest.setSecure(!httpRequest.isSecure()));} else {</BUG><CONTEXT>return httpResponse;} catch (TimeoutException e) {throw new SocketCommunicationException("Response was not received after " + ConfigurationProperties.maxSocketTimeout() + " milliseconds, to make the proxy wait longer please use \"mockserver.maxSocketTimeout\" system property or ConfigurationProperties.maxSocketTimeout(long milliseconds)", e.getCause());} catch (ExecutionException e) {if (retryIfSslFails) {<extra_id_0>Throwable cause = e.getCause();if (cause instanceof ConnectException) {throw new SocketConnectionException("Unable to connect to socket " + httpRequest.getDestination(), cause);</CONTEXT>
return sendRequest(httpRequest.withSsl(!isSsl));} else {