You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@axis.apache.org by "Bill Mitchell (JIRA)" <ji...@apache.org> on 2007/12/06 00:05:45 UTC
[jira] Updated: (AXIS2C-809) libcurl ignores error on http send,
leaks memory, et.al.
[ https://issues.apache.org/jira/browse/AXIS2C-809?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Bill Mitchell updated AXIS2C-809:
---------------------------------
Attachment: axis2_libcurl_diff
Attached diff reflects fixes to the 4 issues above:
(1) return error if send fails
(2) log curl error message
(3) don't leak memory on every send
(4) return error if allocation fails
> libcurl ignores error on http send, leaks memory, et.al.
> ---------------------------------------------------------
>
> Key: AXIS2C-809
> URL: https://issues.apache.org/jira/browse/AXIS2C-809
> Project: Axis2-C
> Issue Type: Bug
> Components: transport/http
> Affects Versions: Current (Nightly)
> Environment: Windows, Visual Studio 2005, building libcurl version using libcurl 7.17.1
> Reporter: Bill Mitchell
> Priority: Minor
> Attachments: axis2_libcurl_diff
>
>
> When using the libcurl version of Axis2C, I inadvertently provided an invalid URL address. It turns out that axis2_libcurl ignores an error sending the request and goes ahead and tries to parse the non-existent response. The preferred behavior would be to match that of axis2_http_sender_send in its normal configuration, and return AXIS2_FAILURE. It would be nice if the actual curl error were logged.
> When investigating this, I noticed that axis2_libcurl allocates a axis2_libcurl structure on each send, and this structure is never freed.
> I also noticed that the routine was not well behaved when the allocation of the axis2_libcurl structure failed.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-c-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-c-dev-help@ws.apache.org