This page is a snapshot from the LWG issues list, see the Library Active Issues List for more information and the meaning of New status.

3444. [networking.ts] net::basic_socket_streambuf::connect(Args&&...) effects are wrong

Section: 19.1.2 [networking.ts::socket.streambuf.members] Status: New Submitter: Jonathan Wakely Opened: 2020-05-14 Last modified: 2020-07-18

Priority: 2

View all issues with New status.

Discussion:

Addresses: networking.ts

The effects in 19.1.2 [networking.ts::socket.streambuf.members] p3 say that the function loops through every endpoint in the sequence, attempting to establish a connection. It needs to say that as soon as a connection is successfully established it returns. Otherwise even if a connection is made, it closes the socket and tries the next endpoint in the sequence. That means it will always be left in whatever state resulted from trying the last endpoint in the sequence (or from timing out if the expiry time was reached before iterating through all endpoints).

[2020-07-17; Priority set to 2 in telecon]

Jonathan to provide wording.

Proposed resolution: