You are viewing a plain text version of this content. The canonical link for it is here.
Posted to proton@qpid.apache.org by "Dominic Evans (JIRA)" <ji...@apache.org> on 2014/05/06 17:25:15 UTC
[jira] [Updated] (PROTON-578) proton-c: windows/io.c prints
"Unknown error" for all winsock errors
[ https://issues.apache.org/jira/browse/PROTON-578?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Dominic Evans updated PROTON-578:
---------------------------------
Attachment: 17_fix_winsock_error_code_printing.patch
Attached patch will use FormatMessage() to get an appropriate error message from the WSA errors.
> proton-c: windows/io.c prints "Unknown error" for all winsock errors
> --------------------------------------------------------------------
>
> Key: PROTON-578
> URL: https://issues.apache.org/jira/browse/PROTON-578
> Project: Qpid Proton
> Issue Type: Bug
> Components: proton-c
> Affects Versions: 0.7
> Reporter: Dominic Evans
> Attachments: 17_fix_winsock_error_code_printing.patch
>
>
> The code in windows/io.c is attempting to call strerror on Winsock WSA error codes returned by WSAGetLastError(). However, these codes don't map to Unix errno codes, so will always output an "Unknown error" msg.
--
This message was sent by Atlassian JIRA
(v6.2#6252)