Hibernate after opening connection and when waiting for data
merge bug25469 into stable