Connection timeout setting #15

Closed
vskr opened this Issue Jan 28, 2013 · 5 comments

Projects

None yet

3 participants

@vskr
vskr commented Jan 28, 2013

I was looking at happybase documentation here for Connection class ( http://happybase.readthedocs.org/en/latest/api.html ), and was searching for timeout parameter but couldn't find one.

Is happybase.Connection() to a hbase thrift server a persistent connection. If not, does it have a default timeout ( does it fallback/use timeout defined in python thrift bindings) that can be changed.

@wbolster
Owner

It uses the Thrift bindings directly, without changing any settings.

@vskr vskr closed this Jan 29, 2013
@wbolster
Owner

If it's useful to have, I can easily expose it in the API. Please let me know.

@wbolster wbolster reopened this Jan 29, 2013
@wbolster
Owner

I've looked a bit more into this. It seems fairly easy to add, so I'll include it.

@wbolster wbolster was assigned Jan 29, 2013
@wbolster wbolster added a commit that referenced this issue Jan 29, 2013
@wbolster Add 'timeout' parameter to Connection constructor
Fixes issue #15.
b34f2c3
@wbolster wbolster closed this Jan 29, 2013
@vskr
vskr commented Jan 29, 2013

Thanks!!

@raman-hike

How can I set other timeouts like rpc timeout, operation timeout ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment