merge the fix for #9777 (ECONRESET->ENOTCON mapping)
authorAleš Křenek <ljocha@ics.muni.cz>
Thu, 18 May 2006 11:33:05 +0000 (11:33 +0000)
committerAleš Křenek <ljocha@ics.muni.cz>
Thu, 18 May 2006 11:33:05 +0000 (11:33 +0000)
org.glite.lb.common/src/lb_plain_io.c
org.glite.lb.common/src/mini_http.c

index a1e4dd2..1de8e37 100644 (file)
@@ -135,6 +135,7 @@ cleanup:
                if ( to->tv_sec < 0 ) to->tv_sec = to->tv_usec = 0;
        }
 
+       if ( errno == ECONNRESET) errno = ENOTCONN;
        if ( errno ) return -1;
 
        if ( conn->bufUse > 0 ) {
index fcb3157..0535aa6 100644 (file)
@@ -55,6 +55,7 @@ edg_wll_ErrorCode edg_wll_http_recv(edg_wll_Context ctx,char **firstOut,char ***
                                edg_wll_SetErrorGss(ctx, "receving HTTP request", &gss_code);
                                goto error;
                        case EDG_WLL_GSS_ERROR_ERRNO:
+                               if (errno == ECONNRESET) errno = ENOTCONN;
                                edg_wll_SetError(ctx,errno,"edg_wll_gss_read()");
                                goto error;
                        case EDG_WLL_GSS_ERROR_TIMEOUT: