-
Notifications
You must be signed in to change notification settings - Fork 107
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
behavior of http.createServer #124
Labels
Comments
i.e. through has an internal buffer. The response is mangled because concurrent requests are reading from the same buffer. |
I see, that makes sense. Thanks for the reply. |
👍 |
This was referenced Jan 12, 2014
This was referenced Nov 16, 2014
@timoxley thanks for clarifying this concept 👍 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I am running through stream-adventure: http server when I first stumbled upon this oddity.
when I wrote my code like so:
I got extra results that I could not explain. However, when I moved
var ts = ...
intocreateServer
's callback function the program ran as expected.Can anyone explain what happened? Why would declaring ts outside of
createServer
produce different results?The text was updated successfully, but these errors were encountered: