-
Notifications
You must be signed in to change notification settings - Fork 1
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
quic: stream fixes #17
base: master
Are you sure you want to change the base?
Conversation
@jasnell ping |
this.emit('ready'); | ||
// TODO (fix): What happens on failure? We still need to | ||
// invoke the callback somehow? Change signature of kSetHandle | ||
// to (err, handle)? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please note this comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Possibly. The failure conditions have not been fully tested yet.
// internal handle has been created. The QuicStream object | ||
// is still minimally usable before this but any data | ||
// written will be buffered until kSetHandle is called. | ||
this[kSetHandle] = (handle) => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I really dislike the property pattern for these functions. I'd rather [kSetHandle]
be a function on the class.
Checklist
make -j4 test
(UNIX), orvcbuild test
(Windows) passes