2

Closed

Fetching tile timeout "No response received in time."

description

bool hasSignal = waitHandle.WaitOne(timeout ?? System.Threading.Timeout.Infinite);
        if (!hasSignal)
        {
            throw new TimeoutException("No response received in time.");
        }
HttpWebRequestExtensions.cs

This code throws exception when a request does not return within provided timeout. Throwing an exception without canceling request that is in progress causes all further coming requests to timeout.
If timeout happens try to cancel that in-progress request can solve this issue.

bool hasSignal = waitHandle.WaitOne(timeout ?? System.Threading.Timeout.Infinite);
        if (!hasSignal)
        {
            try
            {
                if (response != null) //check again if meanwhile response is returned the return response.
                    return response;
                request.Abort();
            }
            catch (Exception ex)
            {
                throw new TimeoutException("No response received in time.");
            }
            throw new TimeoutException("No response received in time.");
        }
Please merge this code in repository.
Closed Apr 21, 2014 at 9:11 PM by pauldendulk
This was a BruTile issue and was fixed in BruTile 0.7.4

comments