Vanjikumaran Sivajothy created SYNAPSE-1034: -----------------------------------------------
Summary: Inconsistent Error code for timeout Key: SYNAPSE-1034 URL: https://issues.apache.org/jira/browse/SYNAPSE-1034 Project: Synapse Issue Type: Bug Components: Transports Reporter: Vanjikumaran Sivajothy Assignee: Hiranya Jayathilaka synapse using its own set of error codes in the error messages and timeout handler using HTTP stutus code. Further AbstractEndpoint#isTimeout might get affected as it checks {code} Integer errorCode = (Integer) synCtx.getProperty(SynapseConstants.ERROR_CODE); if (errorCode != null) { if (definition.getTimeoutErrorCodes().isEmpty()) { // if timeout codes are not defined, assume only HTTP timeout and connection close boolean isTimeout = SynapseConstants.NHTTP_CONNECTION_TIMEOUT == errorCode; boolean isClosed = SynapseConstants.NHTTP_CONNECTION_CLOSED == errorCode; if (isTimeout || isClosed) { if (log.isDebugEnabled()) { log.debug("Encountered a default HTTP connection " + (isClosed ? "close" : "timeout") + " error : " + errorCode); } return true; } } {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332) --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@synapse.apache.org For additional commands, e-mail: dev-h...@synapse.apache.org