Clever / thrift-pool

A module that wraps thrift interfaces in connection pooling logic to make them more resilient.
Apache License 2.0
22 stars 15 forks source link

Birthday #1

Closed cozmo closed 9 years ago

cozmo commented 9 years ago

Adding the initial thrift-pool files.

rgarcia commented 9 years ago

nit: I'd prefer a repo name that contained "js" or "node" somewhere. My guess is that we might write similar pooling logic for other languages

ipam73 commented 9 years ago

@jonahkagan @templaedhel and I added some tests. Let me know what you think. f5b0cc88e133535667f6f39a12cd37220fcdfb3f

ipam73 commented 9 years ago

Updated changes:

Testing:

To-do:

ipam73 commented 9 years ago

@kvigen @jonahkagan

ipam73 commented 9 years ago

After manual testing, added f8b8e7f5fbbde4b503f30c1f42799cf7b32f032b Change: add "close" listener, test case, use debug package for logging Context: when the service is down and a new connection is attempted to be established a "connect" event is emitted by the net package directly followed by a "close" event. In order to catch this as an error, the "close" event listener needs to create and return an error.

jonahkagan commented 9 years ago

Seems like a reasonable change to me :+1:

kvigen commented 9 years ago

except for the last few comments, this looks good to me