Setting timeout for long poll on workflow execution

We are currently using workflowService.getWorkflowExecutionHistory with waitNewEvent: true in order to long poll in one of our clients. It is not clear what the timeout (if any) on this is, and whether or not we can influence it?
Thanks!

If WaitNewEvent is set to true the rpc call will not resolve until there is a new event.