add timeout configuration to handle long requests (#1279)