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

Fix RestartableHttpClient. #119

Merged
merged 4 commits into from
Jun 2, 2014
Merged

Conversation

paradigmsort
Copy link
Contributor

It kills its connectionmanager when it restarts, so we have to create a new one. So don't allow passing in a single instance of connectionmanager; it won't work. Instead, create a new one with the given schemeregistry, which can now be provided - this is the main thing to customize in a connectionmanager anyways.

…arts, so we have to create a new one. So don't allow passing in a single instance of connectionmanager; it won't work. Instead, create a new one with the given schemeregistry, which can now be provided - this is the main thing to customize in a connectionmanager anyways
@bkhau
Copy link
Contributor

bkhau commented May 29, 2014

This seems much better than the ClientConnectionManagerFactory way.

Ship it!

@kevinoliver
Copy link
Contributor

Can you add a test case showing that this fixes issue #113 ?

@paradigmsort
Copy link
Contributor Author

Added a minimal test case to reproduce the behavior and cleaned up imports.

@paradigmsort
Copy link
Contributor Author

Addressed comments.

kevinoliver added a commit that referenced this pull request Jun 2, 2014
@kevinoliver kevinoliver merged commit 60969ef into twitter:master Jun 2, 2014
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants