gonzalo diethelm | 21 Jun 2012 21:42
Picon

[PATCH] Added textual descriptions for several unknown errors

― Attachment links are at the end of this email ―

These errors were appearing as "Unknown error" under Windows.

--
Gonzalo Diethelm
DCV Chile

----------------------------------------- 
Declaración de confidencialidad: Este Mensaje esta destinado para
el uso de la o las personas o entidades a quien ha sido dirigido y
puede contener información reservada y confidencial que no puede
ser divulgada, difundida, ni aprovechada en forma alguna. El uso no
autorizado de la información contenida en este correo podrá ser
sancionado de conformidad con la ley chilena. 
Si usted ha recibido este correo electrónico por error, le pedimos
eliminarlo junto con los archivos adjuntos y avisar inmediatamente
al remitente, respondiendo este mensaje. 

"Before printing this e-mail think if is really necesary".
Disclosure: This Message is to be used by the individual,
individuals or entities that it is addressed to and may include
private and confidential information that may not be disclosed,
made public nor used in any way at all. Unauthorized use of the
information in this electronic mail message may be subject to the
penalties set forth by Chilean law. 
If you have received this electronic mail message in error, we ask
you to destroy the message and its attached file(s) and to
immediately notify the sender by answering this message.
Crossroads Development now contains the following file
(Continue reading)

Martin Sustrik | 22 Jun 2012 11:28
Gravatar

Re: [PATCH] Added textual descriptions for several unknown errors

Hi Gonzalo,

> These errors were appearing as "Unknown error" under Windows.

Are you sure about the ETIMEDOUT error?

It's defined by windows.h, so, I would expect it to be resolved by 
strerror() function.

Martin

-----------------------------------------
Full text of this topic in Crossroads Development:
http://groups.crossroads.io/r/topic/4yOrizQhGJT6loJQCmbtzb

To leave Crossroads Development, email
mailto:crossroads-dev@...?Subject=unsubscribe

Start your own free groups and site with
OnlineGroups.Net http://onlinegroups.net

Host your own online groups site with
GroupServer http://groupserver.org

gonzalo diethelm | 22 Jun 2012 14:06
Picon

Re: [PATCH] Added textual descriptions for several unknown errors

― Attachment links are at the end of this email ―

> > These errors were appearing as "Unknown error" under Windows.
> 
> Are you sure about the ETIMEDOUT error?
> 
> It's defined by windows.h, so, I would expect it to be resolved by
> strerror() function.

I reverted my patch and added the following lines to the beginning of inproc_thr:

    fprintf(stderr, "ETIMEDOUT = %d - [%s]\n",
            ETIMEDOUT, xs_strerror(ETIMEDOUT));
    fprintf(stderr, "ENOTSOCK = %d - [%s]\n",
            ENOTSOCK, xs_strerror(ENOTSOCK));
    fprintf(stderr, "EAFNOSUPPORT = %d - [%s]\n",
            EAFNOSUPPORT, xs_strerror(EAFNOSUPPORT));
    fprintf(stderr, "EMTHREAD = %d - [%s]\n",
            EMTHREAD, xs_strerror(EMTHREAD));

Results:

ETIMEDOUT = 138 - [Unknown error]
ENOTSOCK = 128 - [Unknown error]
EAFNOSUPPORT = 102 - [Unknown error]
EMTHREAD = 156384766 - [Unknown error]

The low numbers for the first three would suggest these errors are known by Windows, but somehow it doesn't
really work.

(Continue reading)

Martin Sustrik | 22 Jun 2012 14:40
Gravatar

Re: [PATCH] Added textual descriptions for several unknown errors

On 22/06/12 14:06, gonzalo diethelm wrote:

> The low numbers for the first three would suggest these errors are known by Windows, but somehow it doesn't
really work.

I see. It looks like a problem with windows' implementation of strerror().

What version of windows is that btw?

Martin

-----------------------------------------
Full text of this topic in Crossroads Development:
http://groups.crossroads.io/r/topic/6q20cM9rL8lbuFUamZ4scL

To leave Crossroads Development, email
mailto:crossroads-dev@...?Subject=unsubscribe

Start your own free groups and site with
OnlineGroups.Net http://onlinegroups.net

Host your own online groups site with
GroupServer http://groupserver.org

gonzalo diethelm | 22 Jun 2012 14:56
Picon

Re: [PATCH] Added textual descriptions for several unknown errors

Windows 7: Microsoft Windows [Version 6.1.7601]

-- 
Gonzalo Diethelm
DCV Chile

> -----Original Message-----
> From: Martin Sustrik [mailto:sustrik@...]
> Sent: Friday, June 22, 2012 8:41 AM
> To: crossroads-dev@...
> Cc: gonzalo diethelm
> Subject: Re: [crossroads-dev] [PATCH] Added textual descriptions for several
> unknown errors
> 
> On 22/06/12 14:06, gonzalo diethelm wrote:
> 
> > The low numbers for the first three would suggest these errors are known
> by Windows, but somehow it doesn't really work.
> 
> I see. It looks like a problem with windows' implementation of strerror().
> 
> What version of windows is that btw?
> 
> Martin

----------------------------------------- 
Declaración de confidencialidad: Este Mensaje esta destinado para
el uso de la o las personas o entidades a quien ha sido dirigido y
puede contener información reservada y confidencial que no puede
ser divulgada, difundida, ni aprovechada en forma alguna. El uso no
(Continue reading)

Martin Sustrik | 25 Jun 2012 09:00
Gravatar

Re: [PATCH] Added textual descriptions for several unknown errors

Hi Gonzalo,

> These errors were appearing as "Unknown error" under Windows.

The patch is applied now.

I've took liberty to do following modifications:

1. I've changed the message texts to precisely match the error messages 
in POSIX standard.
2. I've removed message for EMTHREAD error as it is libxs-specific and 
not used by libxs anymore.

Thanks!
Martin

-----------------------------------------
Full text of this topic in Crossroads Development:
http://groups.crossroads.io/r/topic/2OiAavLgM7JPWPs4n6dCd

To leave Crossroads Development, email
mailto:crossroads-dev@...?Subject=unsubscribe

Start your own free groups and site with
OnlineGroups.Net http://onlinegroups.net

Host your own online groups site with
GroupServer http://groupserver.org

(Continue reading)

gonzalo diethelm | 25 Jun 2012 20:46
Picon

Re: [PATCH] Added textual descriptions for several unknown errors

> > These errors were appearing as "Unknown error" under Windows.
> 
> The patch is applied now.
> 
> I've took liberty to do following modifications:
> 
> 1. I've changed the message texts to precisely match the error messages in
> POSIX standard.
> 2. I've removed message for EMTHREAD error as it is libxs-specific and not
> used by libxs anymore.

Great, thanks for applying it.

--

-- 
Gonzalo Diethelm
DCV Chile

----------------------------------------- 
Declaración de confidencialidad: Este Mensaje esta destinado para
el uso de la o las personas o entidades a quien ha sido dirigido y
puede contener información reservada y confidencial que no puede
ser divulgada, difundida, ni aprovechada en forma alguna. El uso no
autorizado de la información contenida en este correo podrá ser
sancionado de conformidad con la ley chilena. 
Si usted ha recibido este correo electrónico por error, le pedimos
eliminarlo junto con los archivos adjuntos y avisar inmediatamente
al remitente, respondiendo este mensaje. 

"Before printing this e-mail think if is really necesary".
Disclosure: This Message is to be used by the individual,
(Continue reading)


Gmane