On Fri, 22 Nov 2013 22:04:29 GMT, Jack Applegame wrote:

Seems like reason is querying MongoDB right inside response delegate:

requestHTTP(url, (scope request) {
    ...
}, (scope response) {
    ...
    // querying mongo here
    ...
});

If I move mongo calls outside of response delegate, then exceptions have gone.

I've fixed the direct cause for the finalization error in 866f7ab. The initiating cause seems to be that the server terminates the connection before the response is read, so it's still interesting to find out why that happened in the first place.