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

Added configurable timeout to connection string #152

Merged
merged 3 commits into from
Nov 12, 2015

Conversation

sergey-ushakov
Copy link
Contributor

  • RedisURI.java, RedisURITest.java - add timeout configuration to Redis connection string

return;
}

String timeoutString = queryParam.substring(index + 1);
Copy link
Collaborator

Choose a reason for hiding this comment

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

How about decoding the value part using URLDecoder.decode?

@mp911de
Copy link
Collaborator

mp911de commented Nov 12, 2015

Thanks for the PR. I was tempted all the time to introduce options within the query string and you made the first step 👍
I added some comments to the code. The PR runs currently into build errors. Can you fix those and adjust the code formatting within the test?

, RedisURITest.java - new test to check query string decoding, code formatting changes
@sergey-ushakov
Copy link
Contributor Author

Query string seems to be already decoded, added test for it. Also added lookup map.

@mp911de
Copy link
Collaborator

mp911de commented Nov 12, 2015

Great, thank you. I'll adopt your change for the 4.1 branch as well.

mp911de added a commit that referenced this pull request Nov 12, 2015
Added configurable timeout to connection string
@mp911de mp911de merged commit 8aa3b69 into redis:master Nov 12, 2015
@mp911de mp911de added this to the Lettuce 3.4 milestone Nov 12, 2015
@mp911de mp911de added the type: feature A new feature label Nov 12, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: feature A new feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants