Skip Menu |

This queue is for tickets about the POE-Component-Client-HTTP CPAN distribution.

Report information
The Basics
Id: 13860
Status: resolved
Priority: 0/
Queue: POE-Component-Client-HTTP

Owner: Nobody in particular
Requestors: gtg303y [...]

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)


To: bug-poe-component-client-http [...]
From: Charles Reiss <gtg303y [...]>
Subject: invalid requests cause crash (with patch)
Date: Mon, 25 Jul 2005 15:03:41 -0400
Download (untitled) / with headers
text/plain 796b
POE::Component::Client::HTTP does not correctly handle requests with malformed or non-existent host-parts, e.g. a request for 'http:bad'. It would just die after PoCoClientKeepalive's allocate() croak()'d. This patch makes PoCoClientHTTP return a 400 (Malformed Request) error with the $@ from eval { ... } around the connection allocation. I modified 01_request.t to test this. I do there unusually use call() instead of post() since the error response is generated in the poco_weeble_request and cannot be in queue when check_counts is called if we want to get a correct count. I also modified the test to count responses recieved so check_counts behaves correctly except with respect to responses in transit. My patch is attached (I hope!) -- Charles "woggle" Reiss
Download pocohttp.diff
text/x-diff 3.1k

Message body is not shown because sender requested not to inline it.

Download (untitled) / with headers
text/plain 113b
Patch applied, thanks! It won't be released until some other outstanding bugs are fixed, including one of yours.

This service is sponsored and maintained by Best Practical Solutions and runs on infrastructure.

Please report any issues with to