[Ace-users] [ace-bugs] A bug ACE_SSL_Asynch_Stream::close().

Juraj Ivančić juraj.ivancic at gmail.com
Wed Jun 27 03:23:24 CDT 2007


    ACE VERSION: 5.5.8

    HOST MACHINE and OPERATING SYSTEM:
       Intel Pentium M, Windows XP SP2, WINSOCK2, MSVC7.1

    THE $ACE_ROOT/ace/config.h FILE
    config-win32.h

    AREA/CLASS/EXAMPLE AFFECTED:
ACE_SSL_Asynch_Stream class.

    DOES THE PROBLEM AFFECT:
        COMPILATION? No
        LINKING? No
        EXECUTION? Yes

    SYNOPSIS:
ACE_SSL_Asynch_Stream::close() always returns -1.

    DESCRIPTION:
    Calling ACE_SSL_Asynch_Stream::close() (once ACE_SSL_Asynch_Stream 
is opened) always returns -1
because the SF_STREAM_OPEN flag is never cleared.This means that calling 
close() will never set
the SF_DELETE_ENABLE flag.

    SAMPLE FIX/WORKAROUND:
    SF_STREAM_OPEN flag should be cleared somewhere. I am not quite sure 
what would be the best place
to do that (possibly at the end of 
ACE_SSL_Asynch_Stream::do_SSL_shutdown ()? ).



More information about the Ace-users mailing list