[ https://issues.apache.org/jira/browse/SYNAPSE-1034?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Vanjikumaran Sivajothy updated SYNAPSE-1034: -------------------------------------------- Summary: Inconsistent Error code for timeout in TimeoutHandler (was: Inconsistent Error code for timeout) > Inconsistent Error code for timeout in TimeoutHandler > ----------------------------------------------------- > > 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