RejectedSoftware Forums

Sign up

SSL endless exceptions

I tried to fetch html page via HTTPS and got multiple endless exceptions.

exceptions.txt

This exceptions infinitely repeated until Ctrl+C is pressed.

Re: SSL endless exceptions

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.

Re: SSL endless exceptions

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.