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

IpcBytesSender::send will hang up when receiver is not work. #275

Closed
jmjoy opened this issue Jun 7, 2021 · 1 comment
Closed

IpcBytesSender::send will hang up when receiver is not work. #275

jmjoy opened this issue Jun 7, 2021 · 1 comment

Comments

@jmjoy
Copy link
Contributor

jmjoy commented Jun 7, 2021

OS: Linux(5.4.50)

Test code:

use ipc_channel::ipc::bytes_channel;

fn main() {
    let (sender, _receiver) = bytes_channel().unwrap();

    for i in  0..1000 {
        println!("count: {}", i);
        sender.send(b"...").unwrap();
    }
}

Result (Hang up when count is 278):

...
count: 275
count: 276
count: 277
count: 278

If it really will hang up, may be prompt on the document?

@jdm
Copy link
Member

jdm commented Jun 7, 2021

It would be useful to step through this code to find out where the hang is coming from.

@jmjoy jmjoy closed this as completed Aug 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants