Skip to content

Fix TcpStream::connect_timeout on linux - #45269

Merged
bors merged 1 commit into
rust-lang:masterfrom
sfackler:connect-timeout-fix
Oct 15, 2017
Merged

Fix TcpStream::connect_timeout on linux#45269
bors merged 1 commit into
rust-lang:masterfrom
sfackler:connect-timeout-fix

Conversation

@sfackler

Copy link
Copy Markdown
Member

Linux appears to set POLLOUT when a conection's refused, which is pretty
weird. Invert the check to look for an error explicitly. Also add an
explict test for this case.

Closes#45265.

r? @alexcrichton

@sfacklersfackler added beta-nominated Nominated for backporting to the compiler in the beta channel. T-libs-api [DEPRECATED; DO NOT USE] labels Oct 14, 2017
@kennytmkennytm added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Oct 14, 2017
@alexcrichton

Copy link
Copy Markdown
Member

@bors: r+

@bors

bors commented Oct 14, 2017

Copy link
Copy Markdown
Collaborator

📌 Commit 2bd5238 has been approved by alexcrichton

@alexcrichtonalexcrichton added the beta-accepted Accepted for backporting to the compiler in the beta channel. label Oct 14, 2017
@kennytmkennytm added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Oct 14, 2017
kennytm added a commit to kennytm/rust that referenced this pull request Oct 14, 2017
…xcrichton
Fix TcpStream::connect_timeout on linux
Linux appears to set POLLOUT when a conection's refused, which is pretty
weird. Invert the check to look for an error explicitly. Also add an
explict test for this case.
Closesrust-lang#45265.
r? @alexcrichton
@kennytmkennytm mentioned this pull request Oct 14, 2017
Linux appears to set POLLOUT when a conection's refused, which is pretty
weird. Invert the check to look for an error explicitly. Also add an
explict test for this case.
Closesrust-lang#45265.
@sfackler

Copy link
Copy Markdown
MemberAuthor

@bors r=alexcrichton

@bors

bors commented Oct 14, 2017

Copy link
Copy Markdown
Collaborator

📌 Commit cab99a3 has been approved by alexcrichton

bors added a commit that referenced this pull request Oct 14, 2017
Rollup of 9 pull requests
- Successful merges: #45113, #45250, #45255, #45258, #45263, #45264, #45269, #45280, #45289
- Failed merges:
kennytm added a commit to kennytm/rust that referenced this pull request Oct 15, 2017
…xcrichton
Fix TcpStream::connect_timeout on linux
Linux appears to set POLLOUT when a conection's refused, which is pretty
weird. Invert the check to look for an error explicitly. Also add an
explict test for this case.
Closesrust-lang#45265.
r? @alexcrichton
@kennytmkennytm mentioned this pull request Oct 15, 2017
bors added a commit that referenced this pull request Oct 15, 2017
Rollup of 9 pull requests
- Successful merges: #45113, #45250, #45255, #45258, #45263, #45264, #45269, #45280, #45289
- Failed merges:
@bors
bors merged commit cab99a3 into rust-lang:masterOct 15, 2017
@sfackler
sfackler deleted the connect-timeout-fix branch October 31, 2017 20:08
@alexcrichtonalexcrichton removed the beta-nominated Nominated for backporting to the compiler in the beta channel. label Oct 31, 2017
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

beta-acceptedAccepted for backporting to the compiler in the beta channel.S-waiting-on-borsStatus: Waiting on bors to run and complete tests. Bors will change the label on completion.T-libs-api[DEPRECATED; DO NOT USE]

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

@sfackler@alexcrichton@bors@kennytm