| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
This change fix bug of incorrect http outgoing queue which caused crash on assert. I think there should be some other changes to make ending of response more transparent, this change only fix the bug.
|
Why don't we move this: Lines 136 to 140 in 6192c98 Should be way simpler than the current version of PR. Also, please run make test to ensure that it works, and this change requires a test case as well. Thanks for figuring it out! |
Sorry, something went wrong.
|
I have a question, though... Does it really change anything when applied with #3059 ? |
Sorry, something went wrong.
|
One more comment: I think if you'll make it work as I suggested in first comment - it looks like there should not be any need in #3059 anymore, as the finish event will be guaranteed to fire after prefinish. Do you think this is a correct statement? |
Sorry, something went wrong.
|
You are right #3059 is solved by this. If suggested block is moved into first if after it, it will continue in last else and crash on trying to buffer empty data... we need to return true in this case but not invoke callback... is it right? |
Sorry, something went wrong.
|
@mareksrom why will it crash? It doesn't look like it will do it. Returning true does not make sense to me, we are not going to send anything anyway. |
Sorry, something went wrong.
|
@mareksrom one more question: why is it better than #3059 ? What else is it doing? I like the minimalistic nature of this PR, but just want to see if it fixes more issues than #3059. So far it looks like it isn't. |
Sorry, something went wrong.
|
I'm not sure, but I had it this way and maybe it crashed on writing nothing to connection or I don't know, I can try it again, maybe it was another problem... I'm going to try it... |
Sorry, something went wrong.
|
#3059 does not work... it only calls prefinish before finish, but what does prefinish? problem is that prefinish and finish should be called after socket was assigned and data were flushed, #3059 calls prefinish with finish callback in time it does not have even connection assigned... |
Sorry, something went wrong.
|
@indutny your proposal to move empty data to first if is ok... let's do it this way... |
Sorry, something went wrong.
|
There are style issues, but I like the approach. |
Sorry, something went wrong.
There was a problem hiding this comment.
connection is already asserted above.
Sorry, something went wrong.
There was a problem hiding this comment.
We have a better fix, feel free to skip this PR.
Sorry, something went wrong.
There was a problem hiding this comment.
We have a better fix, feel free to skip this PR.
Are you going to open another PR?
Sorry, something went wrong.
There was a problem hiding this comment.
@arthurschreiber of course!
Sorry, something went wrong.
|
@indurny what news? modification you proposed works and it can be this way, question is if there has to be all the block with check for data.length===0, without it it will also work, just less effective (useless empty write) that will also happen if we change it according to your proposal... |
Sorry, something went wrong.
|
@mareksrom I think I have it working locally. Btw, is the email on your profile correct? |
Sorry, something went wrong.
|
@mareksrom argh, I meant the one that you are using for commits: https://github.com/mareksrom/node/commit/192b28bf2fc688f3da9ad0caa0ecbb84efaf3330.patch |
Sorry, something went wrong.
|
@mareksrom anyway, may I ask you to contact me by email? It is available on my github's profile page: https://github.com/indutny |
Sorry, something went wrong.
|
yes it is... |
Sorry, something went wrong.
|
This isn't related to 11e4249, right? |
Sorry, something went wrong.
|
Will this be merged or are we still awaiting changes? |
Sorry, something went wrong.
|
we'll make sure the fix gets in to 4.1.2 but that's slated for Monday so we have time to resolve outstanding concerns that this has been properly solved |
Sorry, something went wrong.
|
Fedor's modified fix(es) landed in 342c3a1...a4fa51c and released as 4.1.2, see: https://nodejs.org/en/ |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
This change fix bug of incorrect http outgoing queue which caused crash on assert. I think there should be some other changes to make ending of response more transparent, this change only fix the bug.