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

select case bloking in client.go #9

Open
ghost opened this issue Oct 9, 2014 · 5 comments
Open

select case bloking in client.go #9

ghost opened this issue Oct 9, 2014 · 5 comments

Comments

@ghost
Copy link

ghost commented Oct 9, 2014

I tried this broker, found a little problem:
File client.go line:220, in method Receive(...),
select case <-c.stop: this case will never execute.
when i tried close the channel c.stop,
this case will never got in .
But in method Send(...) line:400, similar code , works ok!
I think may be the ReadPacket(...) method at line 260, blocking the select .
I found this code in packets.go:
func decodeLength(r io.Reader) int {
for {
....
}}
Please check if this a real problem, thank you !

@tennessine
Copy link

你问我吧 加qq群 221405150

@tennessine
Copy link

我是这个broker中国区的总代理

@tennessine
Copy link

一看你这头像就知道是中国人

@alsm
Copy link
Owner

alsm commented Oct 10, 2014

Thanks, I will look at it.

@tennessine
Copy link

It had been a long time since last update.

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