|
Home About Us A-Z Index Search * Contact Us Register Login Press ShopThe Open Brand -- Problem Reporting and Interpretations System |
Problem Report 1562 Details
Show help | Quick Search | Submit a Test Suite Support Request | Click here to view your privileges
This page provides all information on Problem Report 1562.
Report 1562 Actions
Problem Report Number 1562 Submitter's Classification Test Suite problem State Resolved Resolution Test Suite Deficiency (TSD) Problem Resolution ID TSD.X.0844 Raised 2001-10-04 08:00 Updated 2003-03-13 08:00 Published 2001-10-05 08:00 Product Standard Sockets V2 (UNIX 98) Certification Program The Open Brand certification program Test Suite VSU version 5.1.2 Test Identification CAPI.os/sockets/listen 2 Linked Problem Reports TSD4U.00301, (in, old, system) Problem Summary TSD4U.00305 The test may fail on some systems due to a timing problem. Problem Text
The reason for the failure is that the test assumes that the accept()
in the child will be slower than the calls to connect() in the parent. The
child creates a socket and then calls listen with a backlog queue of size two.
The test then assumes that if it creates three sockets and calls connect()
that the third will fail, because the first two are still in the connect queue.
Since O_NONBLOCK is set on the first 2 sockets, and both received EINPROGRESS
from connect(), according to the specification for connect() in Networking
Services, Issue 5, the connections are handled asynchronously, so the test
has no way of knowing when they will be removed from the queue. Therefore
it is not reasonable for the test to assume that when the third connect()
is called, the queue is still full.Test Output
************************************************************************
/tset/CAPI.os/sockets/listen/T.listen 2 Failed
Test Description:
Base Conditional Conformance
If the implementation supports a communications domain and a
connection-oriented socket type:
A call to int listen(int socket, int backlog) when backlog is greater
than or equal to 0 shall limit the number of connections in the
socket's listen queue to that value.
Test Information:
PREP: Get VSU_CONNECT_TIMEOUT configuration variable
TEST: AF_INET SOCK_STREAM
PREP: Create test sockaddr_in: address = 192.29.78.124, port = 1389
PREP: Child: create socket
PREP: Child: bind to socket
PREP: Child: listen on socket with backlog of 2
PREP: Child: tell parent ready
PREP: Child: wait for parent to complete test
PREP: Create three sockets
PREP: Wait for child to be ready
PREP: Connect twice to fill queue
TEST: Next connect is rejected
TEST: Return value
ERROR: connect call succeeded unexpectedly, returned 0
************************************************************************Review Information
Review Type TSMA Review Start Date null Completed null Status Complete Review Recommendation No Resolution Given Review Response
This is accepted as a fault in the test suite.
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:
- View Report 1562
- List All PRs
- Search Reports
- Email the System Administrator
- View the The Open Brand Interpretations Database User Manual
Contact the Certification Authority