Skip to content

Commit

Permalink
closes #125 (Handle exception Operation not permitted (sendto failed))
Browse files Browse the repository at this point in the history
  • Loading branch information
knosach committed Sep 18, 2017
1 parent e079879 commit 876a641
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1293,9 +1293,10 @@ else if(balancerRunner.balancerContext.internalTransport!=null) {
balancerRunner.balancerContext.externalIpv6SipProvider.sendRequest(request);
}
}
catch (SipException e)
catch (Exception e)
{
if(request.getMethod().equalsIgnoreCase(Request.OPTIONS)&&isRequestFromServer)
if((request.getMethod().equalsIgnoreCase(Request.OPTIONS)||e.getMessage().equals("Operation not permitted (sendto failed)"))
&&isRequestFromServer)
logger.warn("Problem with sending OPTIONS to external side possibly due to closed window in broweser");
else
logger.error("Unexpected exception while forwarding the request \n" + request, e);
Expand Down

0 comments on commit 876a641

Please sign in to comment.