Skip to content

js_stream: fix buffer index in DoWrite - #1635

Closed
shigeki wants to merge 1 commit into
nodejs:masterfrom
shigeki:fix_jsstream
Closed

js_stream: fix buffer index in DoWrite#1635
shigeki wants to merge 1 commit into
nodejs:masterfrom
shigeki:fix_jsstream

Conversation

@shigeki

Copy link
Copy Markdown
Contributor

The index of buffer to write in JSStream was always 0 by mistake. This fix was to use increment index of buffer arrays. The test was originally made by @mscdex in #1594.

CI results are https://jenkins-iojs.nodesource.com/job/iojs+any-pr+multi/646/ . Most of failures are caused by cpplint errors.

Fixes: #1595
Fixes: #1594

R= @indutny

The index of buffer to write in JSStream was always 0 by mistake. This
fix was to use increment index of buffer arrays.
The test was originally made by Brian White in nodejs#1594.
Fixes: nodejs#1595Fixes: nodejs#1594
@mscdexmscdex added tls Issues and PRs related to the tls subsystem. c++ Issues and PRs that require attention from people who are familiar with C++. stream Issues and PRs related to the stream subsystem. labels May 6, 2015
@indutny

Copy link
Copy Markdown
Member

LGTM, thank you!

shigeki pushed a commit that referenced this pull request May 6, 2015
The index of buffer to write in JSStream was always 0 by mistake. This
fix was to use increment index of buffer arrays.
The test was originally made by Brian White in #1594.
Fix: #1595Fix: #1594
PR-URL: #1635
Reviewed-By: Fedor Indutny <fedor@indutny.com>
@indutny

Copy link
Copy Markdown
Member

Landed in 6ccbe75, thank you @shigeki !

@indutnyindutny closed this May 6, 2015
@rvaggrvagg mentioned this pull request May 7, 2015
Fishrock123 pushed a commit to Fishrock123/node that referenced this pull request May 19, 2015
The index of buffer to write in JSStream was always 0 by mistake. This
fix was to use increment index of buffer arrays.
The test was originally made by Brian White in nodejs#1594.
Fix: nodejs#1595Fix: nodejs#1594
PR-URL: nodejs#1635
Reviewed-By: Fedor Indutny <fedor@indutny.com>
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

c++Issues and PRs that require attention from people who are familiar with C++.streamIssues and PRs related to the stream subsystem.tlsIssues and PRs related to the tls subsystem.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

tls: OpenSSL errors with many tls socket writes

3 participants

@shigeki@indutny@mscdex