Timeout not happening for synchronous calls

View: New views
1 Messages — Rating Filter:   Alert me  

Timeout not happening for synchronous calls

by curiousengr :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I am trying to submit a DWR request with async:false and timeout:5000 and errorHandler:myHandler. If application exception occurs, the myHandler function gets invoked. If I change async to true, myHandler gets invoked if the response takes longer than 5 seconds. But if I keep async:false then even if the response takes very long, the myHandler never gets called. Even the _abortRequest does not get called. Is this an expected behavior or is it a bug? Is there a way to workaround this problem so that myHandler gets called when timeout occurs for sync calls. I also tried using warningHandler but that did not work either. Please help. Thanks.
LightInTheBox - Buy quality products at wholesale price