Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.

Double-free of parser from FreeList in http.js #803

Closed
wants to merge 1 commit into from
Closed

Double-free of parser from FreeList in http.js #803

wants to merge 1 commit into from

Conversation

stephank
Copy link

According to the documentation, a socket error event will be followed by a socket close event. However, the HTTP Agent frees its parser on both events, causing the same parser reference to be pushed twice to the FreeList. This causes strange behavior down the road on further requests, and even HTTP server requests are affected by it.

This patch fixed for us what's been seen in the following discussion: https://groups.google.com/d/topic/nodejs/kYnfJZeqGZ4/discussion

Possibly related issue: #784

The patch on top of v0.4 is at: https://github.com/AngryBytes/node/tree/v0.4-parser-fixes

@ry
Copy link

ry commented Mar 18, 2011

Fix double free of parser on error in http.Agent.

Thanks to Stéphan Kochen for the fix and Maurice Fonk for reproducing the
bug.

Closed by 66570c1.
Closed by 66570c1.

@ry ry closed this Mar 18, 2011
coolaj86 pushed a commit that referenced this pull request Apr 15, 2011
Thanks to Stéphan Kochen for the fix and Maurice Fonk for reproducing the
bug.

Closes GH-784.
Closes GH-803.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants