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

Set connection timeout #56

Closed
rblazquez opened this issue May 13, 2015 · 1 comment
Closed

Set connection timeout #56

rblazquez opened this issue May 13, 2015 · 1 comment

Comments

@rblazquez
Copy link

Im having problems since i have a remote instance and experiencing timeout

redis.clients.jedis.exceptions.JedisConnectionException: java.net.SocketTimeoutException: Read timed out

In Jedis there is a way to specify a higher value using constructor:

public Jedis(final String host, final int port, final int timeout)

Can i do something similar with the plugin?

@ctoestreich
Copy link
Contributor

Can you accomplish this in via the yml (grails 3) or config.groovy (grails 2)?

grails {
    redis {
        timeout = 10000 //default in milliseconds
        port = 6379
        host = "10.20.30.40" 
    }
}

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

No branches or pull requests

2 participants