Overview
Features
Download
Documentation
Community
Add-Ons & Services

Hang/Crash with HTTPClientSession sendRequest

Please post support and help requests here.

Hang/Crash with HTTPClientSession sendRequest

Postby madhankk » 06 Aug 2012, 00:08

Similar to the behaviour in viewtopic.php?f=12&t=5093&p=8159&hilit=HTTPClientSession#p8159
We see that HTTPClientSession sendRequest call hanging under a specific network condition.

This is occurring when DNS is failing to resolve, and there appears to be intermittent network connectivity, the call doesn't seem to return.
Is there any ideas on what could be causing this?
We are using Poco 1.4.3p1.

Code: Select all
Poco::URI uri(url.str());
        Poco::Net::HTTPSClientSession session(uri.getHost(), uri.getPort());
        session.setTimeout(Poco::Timespan(0, 0, 0, 60, 0));
        Poco::Net::HTTPRequest emailreq
            (Poco::Net::HTTPRequest::HTTP_POST,
            path,
            Poco::Net::HTTPMessage::HTTP_1_1);
        htmlform.prepareSubmit(emailreq);
        std::ostream& oustr = session.sendRequest(emailreq);
        htmlform.write(oustr);
       
madhankk
 
Posts: 1
Joined: 05 Aug 2012, 23:44

Re: Hang/Crash with HTTPClientSession sendRequest

Postby alex » 18 Aug 2012, 17:20

Fixed for releases 1.4 and 1.5
alex
 
Posts: 1130
Joined: 11 Jul 2006, 16:27
Location: United_States


Return to Support

Who is online

Users browsing this forum: No registered users and 1 guest