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

Server should not clear writeBuffer in every flush #91

Closed
wants to merge 19 commits into from

Conversation

afshinm
Copy link
Contributor

@afshinm afshinm commented Sep 28, 2012

Issue #59

@afshinm
Copy link
Contributor Author

afshinm commented Sep 28, 2012

I used SourceTree for rebasing with master but Github Mac client for commit. So in this pull request I see last commit changes also, I think this is related to using different clients for committing and rebasing.

@rauchg
Copy link
Contributor

rauchg commented Sep 28, 2012

Please rebase against master

@afshinm
Copy link
Contributor Author

afshinm commented Sep 28, 2012

Done.

this.writeBufferLengths.push(writeBufferObject.length);
this.emit('flush', writeBufferObject);
this.server.emit('flush', this, writeBufferObject);
this.transport.send(writeBufferObject);
Copy link
Contributor

Choose a reason for hiding this comment

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

It's really hard for me to follow the logic here :\ Variable names are too long as well.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Oh! Ok, So please let me to change the variable names.

@afshinm
Copy link
Contributor Author

afshinm commented Oct 1, 2012

Ok. Please check the code again.
Variable names changed to a simpler one and also some comments added in order to increase code readability.

var msg = "boo";

socket.on('drain', function() {
expect(socket.writeBuffer.length).not.to.be(0);
Copy link
Contributor

Choose a reason for hiding this comment

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

double indent

@afshinm
Copy link
Contributor Author

afshinm commented Oct 2, 2012

Ops, Excuse me for that. Fixed.

@afshinm
Copy link
Contributor Author

afshinm commented Oct 12, 2012

New commits added for issue #89.

@afshinm afshinm closed this Oct 13, 2012
darrachequesne pushed a commit that referenced this pull request May 8, 2020
fix "TypeError: Object #<Object> has no method 'global'"
darrachequesne added a commit that referenced this pull request May 8, 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.

None yet

2 participants