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

rework secure channel logic #370

Merged
merged 1 commit into from
Aug 25, 2020
Merged

rework secure channel logic #370

merged 1 commit into from
Aug 25, 2020

Conversation

magiconair
Copy link
Member

Rebased #326 to master. Not yet squashed.

@kung-foo please review and if OK squash it with a sensible commit message.

Should we merge this to master or a release-branch? I'm thinking master since this is latest-and-greatest ... but I don't know whether this patch will break anything.

Fixes #324
Closes #326

@kung-foo kung-foo force-pushed the fix/issue-324-clean branch from 86126f3 to 9059bb3 Compare August 25, 2020 11:27
@@ -292,6 +292,8 @@ const hdrlen = 8
// The size of b must be at least ReceiveBufSize. Otherwise,
// the function returns an error.
func (c *Conn) Receive() ([]byte, error) {
// TODO(kung-foo): allow user-specified buffer
// TODO(kung-foo): sync.Pool
Copy link
Member Author

Choose a reason for hiding this comment

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

beware of sync.Pool since the buffer isn't cleared when it is returned from the pool.

@magiconair
Copy link
Member Author

@kung-foo is this good to be merged to master?

@kung-foo kung-foo merged commit 73e4198 into master Aug 25, 2020
@magiconair magiconair deleted the fix/issue-324-clean branch August 25, 2020 13:23
@magiconair magiconair added this to the v0.1.13 milestone Oct 3, 2020
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.

Unable to renew security token when security mode is not none
2 participants