|
Home About Us A-Z Index Search * Contact Us Register Login Press ShopThe Open Brand -- Problem Reporting and Interpretations System |
Problem Report 1357 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 1357.
Report 1357 Actions
Problem Report Number 1357 Submitter's Classification Test Suite problem State Resolved Resolution Test Suite Deficiency (TSD) Problem Resolution ID TSD.X.0639 Raised 1970-01-01 08:00 Updated 2003-03-13 08:00 Published 1997-01-22 08:00 Product Standard Internationalised System Calls and Libraries Extended (UNIX 95) Certification Program The Open Brand certification program Test Suite VSU version 4.1.1 Test Identification sockets/connect 5 Problem Summary TSD4U.00178 This test may fail on implementations because of an insufficient time delay. Problem Text
This test may fail on implementations because of an insufficient time
delay.
The situation is the following: A client connects 2 times
asynchronously to a server which has prepared the connection's backlog
to "2". Then after activating an alarm timer of DELAY == 2 sec a
blocking connect is initiated. The alarm is expected to interrupt the
blocking connect. Then the time delta is compared with DELAY by:
AF_INET: if(dclock < DELAY || dclock > DELAY + 4)
failure
AF_UNIX: if(dclock < DELAY || dclock > DELAY)
failure
I think the comparison in the AF_UNIX case should read the same
as in AF_INET case because there should be no dependency on the
transport layer.
==================================================================
CLIENT SERVER
-----------------------------------------------------------
s s4/NB s3/NONBLOCK listen(2)
| | | |
| | | |
| | | |
CHILD_READY <------------------------------------------------------
| | | |
| | | |
| | +-> connect |
| +-> connect |
| |
| |
clock1 = time() |
| |
alarm(DELAY == 2) |
| |
+-> connect/blocking |
| |
clock2 = time() |
| |
| |
check clock2 - clock1 |
to see if 3rd connect |
blocked |
|
CHILD_CONTINUE >---------------------------------------------------
. .
. .
. .Test Output
TEST CASE: connect
TEST PURPOSE #5
If the implementation supports a communications domain
and a connection-oriented socket type:
A call to int connect(int socket, const struct
sockaddr *address, size_t address_len) when blocking
is interrupted by a signal shall set errno to EINTR,
return -1, and establish the connection asynchronously.
PREP: Get VSU_CONNECT_TIMEOUT configuration variable
TEST: AF_INET SOCK_STREAM
PREP: Create test sockaddr_in: address = 139.22.228.9, port = 3329
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 become ready
PREP: Child: accept queued connections
PREP: Child: accept connection being asynchronously established
PREP: Child: notify parent connections completed
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: connect blocks until interrupted
TEST: Duration of blocking
PREP: Notify child to accept
TEST: Await notification connections completed
TEST: AF_UNIX SOCK_STREAM
PREP: Create test sockaddr_un: path = ../tmp/unix.a0014y
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 become ready
PREP: Create three sockets
PREP: Wait for child to be ready
PREP: Connect twice to fill queue
TEST: connect blocks until interrupted
TEST: Duration of blocking
ERROR: Process did not appear to block, expected: 2 secs (approx), actual: 3 secs
5 FAILReview 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:
- View Report 1357
- List All PRs
- Search Reports
- Email the System Administrator
- View the The Open Brand Interpretations Database User Manual
Contact the Certification Authority