Relatively new to Node.JS and have a simple server using the http.createServer listening on port 8081. It listens for Ajax calls from a simple webpage. No issues getting the node to listen and respond to requests as expected. The one problem I am running into though, is when I introduce a second request to the same node at the same time through another browser instance, or on another machine, the second request produces the results based on the first calls parameters.
When debugging the server I can see both requests coming in with the different parameters as expected, but it is as if the second request overrides the first one. Coming from a .NET background I initially thought that I had global variables that were being shared between the calls - but I've eliminated all globals.
Is there something painfully obvious that I am missing in keeping two separate node calls completely unique?
via Spades
No comments:
Post a Comment