Skip to content
This repository was archived by the owner on May 31, 2025. It is now read-only.

roscpp/transport_tcp: enable poll event POLLRDHUP to detect dead#1704

Merged
dirk-thomas merged 1 commit intoros:melodic-develfrom
cwecht:fix_get_num_of_subs
Aug 7, 2019
Merged

roscpp/transport_tcp: enable poll event POLLRDHUP to detect dead#1704
dirk-thomas merged 1 commit intoros:melodic-develfrom
cwecht:fix_get_num_of_subs

Conversation

@cwecht
Copy link
Copy Markdown
Contributor

@cwecht cwecht commented Apr 26, 2019

connections properly.

The poll event POLLRDHUP is needed to detect half-closed connections (source). This is needed to avoid the delay reported in #1699.

@flixr
Copy link
Copy Markdown
Contributor

flixr commented May 8, 2019

That look great!

Copy link
Copy Markdown
Contributor

@flixr flixr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@flixr
Copy link
Copy Markdown
Contributor

flixr commented May 11, 2019

I can confirm that this fixes #1699 on Linux

@flixr
Copy link
Copy Markdown
Contributor

flixr commented Jun 14, 2019

This might also fix the long standing #158

@flixr
Copy link
Copy Markdown
Contributor

flixr commented Aug 6, 2019

@dirk-thomas friendly ping.... could this please be merged?
I also reviewed and tested this and can confirm it fixes the problem (on Linux).

@dirk-thomas dirk-thomas added the bug label Aug 7, 2019
@dirk-thomas
Copy link
Copy Markdown
Member

Thanks for the patch.

@protobits
Copy link
Copy Markdown

Hi, I'm on melodic on Ubuntu Bionic with ros-comm 1.14.3-0bionic.20191008.215948. I'm experiencing #158 (disconnect callback is invoked after long time). I understand this PR was merged after the 1.14.3 release, correct? If so, any idea when the next release (containing this fix) is due?

Thanks

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants