HomeAbout Us A-Z IndexSearch * Contact Us Register LoginPress Shop

The Open Brand -- Problem Reporting and Interpretations System


Problem Report 1408 Details

Help Show help | Quick Search | Submit a Test Suite Support Request | Click here to view your privileges

This page provides all information on Problem Report 1408.


Report 1408 Actions


    Problem Report Number 1408
    Submitter's Classification Test Suite problem
    State Resolved
    Resolution Test Suite Deficiency (TSD)
    Problem Resolution ID TSD.X.0690
    Raised 1970-01-01 08:00
    Updated 2003-03-13 08:00
    Published 1996-04-19 08:00
    Product Standard Sockets (UNIX 95)
    Certification Program The Open Brand certification program
    Test Suite VSU version 4.1.0
    Test Identification sockets/accept 13
    Problem Summary TSD4U.00125 This test may fail on implementations where a connect does not succeed until an accept is done on the other end.
    Problem Text
    This test may fail on implementations where a connect does not
    succeed until an accept is done on the other end.

    The implementation of the assertion is not portable.

    The AF_UNIX SOCK_STREAM test on this assertion is UNRESOLVED because
    the connect() issued from the client failed with errno ECONNREFUSED.
    (Note that the AF_INET SOCK_STREAM portion of this assertion is
    successful.)

    connect() for AF_UNIX sockets has a slightly different implementation
    than connect() for AF_INET sockets. AF_UNIX does not complete a
    connection until the accept is done on the server side. AF_INET, on
    the other hand, completes the connection and returns a zero return
    value as soon as the listen is done on the server side.

    Since this testcase never issues an accept on the server side (since
    the assertion of the testcase was successful) the subsequent close of
    the server socket causes the connect request that had been waiting for
    an accept to be rejected in the AF_UNIX case. Since this is after
    successful completion of the assertion, this portion of the testcase
    should not care about the return value received.
    Test Output
    TEST PURPOSE #13
    If the implementation supports a communications
    domain and a connection-oriented socket type:
    EMFILE in errno and return -1 on a call to int
    accept(int socket, struct sockaddr *address, size_t
    *address_len) when OPEN_MAX file descriptors are
    currently open in the calling process.
    PREP: Determine OPEN_MAX
    TEST: AF_INET SOCK_STREAM
    PREP: Create test sockaddr_in: address = 198.151.241.50, port = 1593
    PREP: Create socket
    PREP: Bind to socket
    PREP: Call listen for socket
    PREP: Signal child parent is ready
    PREP: Consume all available file descriptors
    TEST: Call accept
    TEST: Return value
    TEST: errno value
    CLEANUP: Close sockets, kill child
    TEST: AF_UNIX SOCK_STREAM
    PREP: Create test sockaddr_un: path = ../tmp/unix.EcFDxQ
    PREP: Child: wait for parent
    PREP: Create a socket
    PREP: Connect socket to address 198.151.241.50, port 1593
    PREP: Child: wait for parent to complete
    CLEANUP: Child: close socket
    PREP: Create socket
    PREP: Bind to socket
    PREP: Call listen for socket
    PREP: Signal child parent is ready
    PREP: Consume all available file descriptors
    TEST: Call accept
    TEST: Return value
    TEST: errno value
    CLEANUP: Close sockets, kill child
    PREP: Child: wait for parent
    PREP: Create socket
    PREP: Connect to address ../tmp/unix.EcFDxQ
    ERROR: unix_client: connect failed, errno = 1128(ECONNREFUSED -
    Connection refused)
    13 UNRESOLVED

    Review Information

    Review Type TSMA Review
    Start Date null
    Completed null
    Status Complete
    Review Recommendation No Resolution Given
    Review Response
    We agree this is a test suite deficiency in the test
    suite version(s) listed.

    Review Type SA Review
    Start Date null
    Completed null
    Status Complete
    Review Resolution Test Suite Deficiency (TSD)
    Review Conclusion
    This is an agreed Test Suite Deficiency.

    Problem Reporting System Options:

     

    Back   


Contact the Certification Authority