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

clear writeBuffer in each drain + clear writeBuffer after nextTick #95

Closed
wants to merge 18 commits into from

Conversation

afshinm
Copy link
Contributor

@afshinm afshinm commented Oct 13, 2012

This pull request contains new changes for issue #89 and issue #59.

var engine = listen({ allowUpgrades: false }, function (port) {
// hack to access the sockets created by node-xmlhttprequest
Copy link
Contributor

Choose a reason for hiding this comment

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

Why did you undo this test?

Copy link
Contributor

Choose a reason for hiding this comment

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

This change was needed when we upgraded node-xmlhttprequest to 1.5.0

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sorry. I think I have some conflicts in my github repository, let me check it again.

@afshinm
Copy link
Contributor Author

afshinm commented Oct 14, 2012

Ok, conflicts resolved. Please check them again.

@@ -24,6 +24,7 @@ function Socket (id, server, transport) {
this.readyState = 'opening';
this.writeBuffer = [];
this.packetsFn = [];
this.packetLengths = [];
Copy link
Contributor Author

Choose a reason for hiding this comment

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

In order to keep packets length

@rauchg rauchg closed this Jan 18, 2013
darrachequesne pushed a commit that referenced this pull request May 8, 2020
close also if socket.readyState is on "opening"
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