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

Fixes #1304, #1085 #1327

Closed
wants to merge 6 commits into from
Closed

Fixes #1304, #1085 #1327

wants to merge 6 commits into from

Conversation

SaltwaterC
Copy link

#1304: The Connection instance may be destroyed by abort() when process.nextTick is executed.
#1085: The agent end event may call detachSocket() after the socket is detached and destroyed by abort(). This patch avoids that behavior.

…cket is detached and destroyed by abort(). This patch avoids that behavior.
@bnoordhuis
Copy link
Member

Ștefan, would it be possible to get test cases for this? And can you sign the CLA?

@SaltwaterC
Copy link
Author

OK, I signed electronically the CLA form. I hate bureaucracy, but if it's unavoidable, I can live with it.

I'll have a look at the test cases. I need to figure out how.

@SaltwaterC
Copy link
Author

OK, I made a couple of regression tests as well. They fail onto the upstream build, but they not fail on my build.

@koichik
Copy link

koichik commented Jul 14, 2011

@SaltwaterC Thanks for the patches.
Can I rewrite the tests? eg: https://gist.github.com/1082709

@SaltwaterC
Copy link
Author

Sure. I took example from another test-regress-GH-(issue-id).js when I wrote them. They didn't have the Joyent header and such. As for assertions, don't know what it should assert as the application simply crashes.

@SaltwaterC
Copy link
Author

@koichik: I updated them as indicated by your URL. Is everything OK now?

@koichik koichik closed this in 8caf7fd Jul 14, 2011
@koichik
Copy link

koichik commented Jul 14, 2011

Your tests are not bad, but I prefer standalone tests.
Then I have landed your fixes and my tests.
Thanks for your contributions!

@SaltwaterC
Copy link
Author

I get it now. Didn't understand the first time. Thanks for pointing out. I'll use the idea if I'm going to fix something else that bothers me.

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.

3 participants