Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SR-3431] DispatchSource Read/Write Events on Linux #705

Closed
swift-ci opened this issue Dec 15, 2016 · 4 comments
Closed

[SR-3431] DispatchSource Read/Write Events on Linux #705

swift-ci opened this issue Dec 15, 2016 · 4 comments

Comments

@swift-ci
Copy link

Previous ID SR-3431
Radar None
Original Reporter tannernelson (JIRA User)
Type Bug
Status Closed
Resolution Duplicate
Additional Detail from JIRA
Votes 0
Component/s libdispatch
Labels Bug
Assignee None
Priority Medium

md5: 659d899ef7f986d14a9de6727599599f

relates to:

  • SR-3360 on Linux, using DispatchIO with reading and writing simultaneously to a channel can cause the program to hang

Issue Description:

We're running into an issue where, on Linux, `DispatchSourceRead` stops generating events after the `DispatchSourceWrite` has been added.

We have two `DispatchSource`s bound to our socket's file descriptor: One for reading (which calls a handler whenever the socket has data that can be read) and one for writing (which calls a handler whenever the socket is ready to send data).

On macOS, they seem to work independently and all of our tests are passing.

@ddunbar
Copy link
Member

ddunbar commented Dec 15, 2016

/cc dgrove-oss (JIRA User), can you suggest who is best suited to investigate?

@swift-ci
Copy link
Author

Comment by David Grove (JIRA)

Adding phabouzit (JIRA User). I am pretty sure this is hitting a limitation of libkqueue on Linux and the discussion SR-3360 is relevant.

@swift-ci
Copy link
Author

Comment by Pierre Habouzit (JIRA)

Dupe of SR-3360

@swift-ci
Copy link
Author

Comment by Pierre Habouzit (JIRA)

Will be fixed by https://github.com/apple/swift-corelibs-libdispatch/compare/das-darwin-libdispatch-806-merge-master

@swift-ci swift-ci transferred this issue from apple/swift-issues Apr 25, 2022
@shahmishal shahmishal transferred this issue from apple/swift May 5, 2022
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants