[Apiman-user] duplicate response on Connetor timeout

Balu S sbalu27 at gmail.com
Thu Feb 16 05:38:17 EST 2017


[image: Inline image 1]

On Thu, Feb 16, 2017 at 11:34 AM, Balu S <sbalu27 at gmail.com> wrote:

> Hello,
> I have found that if the HTTPConnector times out without receiving the
> response from the backend API, then somewhere down the line it generates 2
> error responses and this is evident from the metrics as it show 2 failures
> as supposed to 1 failure for the single request.
>
> So there are 2 issues,
>   - firstly the returned error response contains 2 error XMLs appended to
> each other and sent to the browser and hence not a valid XML.
>   - The metrics also shows as 2 failure response for single request.
>
>> I have been looking the sources but without the way to debug within
> running application, it quite hard to follow the flow.
>
> This can be easily simulated with setting very low timeouts (2 secs for
> ex) in apiman.properties.
>
> apiman-gateway.connector-factory.http.timeouts.read=2
> apiman-gateway.connector-factory.http.timeouts.write=2
>
> Could you please look at the issue and also If you could guide me how to
> setup debugging environment, then I can try to fix that as well.
>
> regards
> Balu
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/apiman-user/attachments/20170216/cd198dd7/attachment-0001.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image.png
Type: image/png
Size: 29503 bytes
Desc: not available
Url : http://lists.jboss.org/pipermail/apiman-user/attachments/20170216/cd198dd7/attachment-0001.png 


More information about the Apiman-user mailing list