Skip to content
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

Add timeout and timeouts config options #12

Closed
wants to merge 1 commit into from

Conversation

CrabDude
Copy link

Fixes #11

@summer4096
Copy link

+1

i need dis

Right now if you use "forever: true" with request it forces you to run process.exit() when you're done, otherwise the connections stay open.

socket.on('connect', function() {
var name = socket.remoteAddress + ':' + socket.remotePort

socket.setTimeout(self.timeouts[name] || self.timeout, function() {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This will close the socket after it's been open for a certain amount of time. Shouldn't it close the socket after it's been idle for a certain amount of time?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

socket.setTimeout for foreverAgent
2 participants