Skip to content

Fix blocking, add support of argument table #14

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

Merged
merged 3 commits into from
Jun 9, 2016

Conversation

sebastienfr
Copy link
Contributor

Closes #12 blocking issue
Closes #13 support of header table

Refactor basic example to send messages at fixed rate to be able to test reconnection.

sebastienfr and others added 2 commits June 8, 2016 11:01

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
Update to latest version
feat(all): add support for headers with ampq.Table arguments
refact(example): refactor basic example to send continuously messages for reconnection testing
@kron4eg
Copy link
Contributor

kron4eg commented Jun 8, 2016

I'll review this

// return from routine to launch reconnect process
return
case blocking := <-chanBlocking:
c.blocking <- blocking
Copy link
Contributor

Choose a reason for hiding this comment

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

this will block forever in case if user is not reading c.blocking, previously it had fallback with default case

    case blocking := <-chanBlocking:
        select {
        case c.blocking <- blocking:
        default:
        }
    }

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ok sorry, I was wondering what the purpose of the inner select was, it's fixed.

return
case blocking := <-chanBlocking:
select {
case c.blocking <- blocking:
Copy link
Contributor Author

Choose a reason for hiding this comment

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

So pushing in a channel that is full inside a select goes to default, is that right ?

@kron4eg
Copy link
Contributor

kron4eg commented Jun 9, 2016

LGTM, someone from @assembla/developers should merge this

@speedywizard speedywizard merged commit 04133b0 into assembla:master Jun 9, 2016
@kolorowestudio
Copy link

AAAAA

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

Successfully merging this pull request may close these issues.

Support of headers in queue and exchange Blocked publisher does not forward unblock message
4 participants