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

Execution hangs when nowait is set to true #35

Open
kopiczko opened this issue Sep 20, 2016 · 2 comments
Open

Execution hangs when nowait is set to true #35

kopiczko opened this issue Sep 20, 2016 · 2 comments

Comments

@kopiczko
Copy link

Execution of the code below hangs. When nowait parameter is set to false it returns immediately.
I believe it also affects all API's with nowait parameter.

    let mut ses = Session::open_url(url).unwrap();
    let mut ch = ses.open_channel(1).unwrap();
    println!("declaring exchange");
    ch.exchange_declare("test-exchange",
                          "fanout",
                          false, // pssive
                          false, // durable
                          true, // auto_delete
                          false, // internal
                          true, // nowait - hangs when set to true
                          Table::new())
        .unwrap();
@Antti
Copy link
Owner

Antti commented Sep 20, 2016

Oh. Good catch.
For now the client just ignores this parameter, and still waits for the reply from the server.
Instead, it should not wait for the reply and continue.
I guess it should be easy to fix, although the signature of the method would change (since it can not return response from the server).

@kopiczko
Copy link
Author

Java libraries expose additional echangeDeclareNowait method for the same reason I suppose.

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