node-xmlrpc icon indicating copy to clipboard operation
node-xmlrpc copied to clipboard

Connections are not closed after receiving response

Open leszekhanusz opened this issue 11 years ago • 0 comments

I am using the xmlrpc node module to send xmlrpc request to a twisted server (in house) to receive events.

A request is send and if no events are there, a 'timeout' response is sent after one minute.

Apparently the twisted server is not closing the connexion after sending the response. It means that after some time the number of active connexions is the maximum (1024 in this case) and the server stops accepting new connexions.

It is probably a bug in the twisted server which should close the connexions after sending the response.

But I think the xmlrpc node client should also close the connexion after receiving the response (or after a delay ?).

In my case I was able to solve this by calling request.abort() in the function(response) which is in Client.prototype.methodCall

leszekhanusz avatar Dec 03 '13 13:12 leszekhanusz