Skip to content
This repository was archived by the owner on Oct 19, 2022. It is now read-only.

Conversation

dignifiedquire
Copy link
Member

@dignifiedquire dignifiedquire commented May 27, 2016

@diasdavid please review and release when happy

@daviddias
Copy link
Member

I'm suspicious that without any 'unpipe', this will create errors when we have other streams writing to the conn stream after the handshake has been performed.

How tested was this upgrade with swarm and secio tests?

@dignifiedquire
Copy link
Member Author

@diasdavid can you write a test for the concern you have?

@daviddias
Copy link
Member

The best is to link it to swarm and make sure it passes all the tests cause there is a lot of writes coming from several places

@dignifiedquire
Copy link
Member Author

swarm + secio passes with this change, that's why I implemented it in the first place

lpm.write(conn, new Buffer(protocol + '\n'))
lpm.read(conn, function (msgBuffer) {
encode.write(new Buffer(protocol + '\n'))
decode.once('data', function (msgBuffer) {
Copy link
Member

Choose a reason for hiding this comment

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

ah, got it. 'once' and not 'on'

@daviddias daviddias merged commit 98a273c into master May 28, 2016
@daviddias daviddias deleted the stream branch May 28, 2016 14:45
@daviddias
Copy link
Member

@dignifiedquire released on 0.10

@dignifiedquire
Copy link
Member Author

thanks :)

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.

2 participants