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 unref option to kv.get #5

Closed
wants to merge 2 commits into from
Closed

Add unref option to kv.get #5

wants to merge 2 commits into from

Conversation

qix
Copy link

@qix qix commented Feb 15, 2015

This requests that papi unref's the socket for the request if the given option is used with get.

The use case here is requests to update background information. The wait time can be set to ten minutes, but if the rest of the application is done there is no reason to continue waiting for a response. With the socket unref'd (see accompanying papi diff) the program exits cleanly.

@silas
Copy link
Owner

silas commented Feb 15, 2015

I'm going to hold off for a more general abort request solution, but you can use the method outlined in silas/node-papi#1 for now and I added #6 to track a fix in consul.

Thanks again!

@silas silas closed this Feb 15, 2015
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.

2 participants