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

quic: stream fixes #17

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

quic: stream fixes #17

wants to merge 1 commit into from

Conversation

ronag
Copy link
Member

@ronag ronag commented Jun 16, 2020

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • tests and/or benchmarks are included
  • documentation is changed or added
  • commit message follows commit guidelines

@ronag
Copy link
Member Author

ronag commented Jun 16, 2020

@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)?
Copy link
Member Author

Choose a reason for hiding this comment

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

Please note this comment

Copy link

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) => {
Copy link

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.

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.

2 participants