Skip to content
This repository has been archived by the owner on Feb 7, 2024. It is now read-only.

pubsub/pub TCP未关闭 #53

Merged
merged 3 commits into from
Jul 3, 2017
Merged

pubsub/pub TCP未关闭 #53

merged 3 commits into from
Jul 3, 2017

Conversation

scroot
Copy link
Contributor

@scroot scroot commented Jul 2, 2017

导致长时间运行,大量TCP未关闭,程序失效

pubsub/pub TCP未关闭
更周全的关闭
@magik6k
Copy link
Member

magik6k commented Jul 2, 2017

Please use english language for communication in issues/pull requests and for commit messages

@whyrusleeping
Copy link
Member

不错,谢谢

(not bad, thanks)

@whyrusleeping whyrusleeping merged commit 2da86eb into ipfs:master Jul 3, 2017
}
defer func(){
err1 := resp.Close()
Copy link
Member

Choose a reason for hiding this comment

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

What if resp is nil when it errors out?
It will panic.

Copy link

Choose a reason for hiding this comment

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

I think if resp is nil, err will have to be non-nil and it'll already have returned

Copy link
Member

Choose a reason for hiding this comment

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

right

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants