The problem was my query. Once I changed that simple test loop for a real SELECT statement then the timeout property already worked as expected.