compute queueTimeout in the constructor, fix #48