Hello @Tony Pitman ,
Thank you for your question regarding HTTP timeouts when using Dev Tunnels to connect a Mac client app to an ASP.NET service hosted on a Windows PC.
Based on your description, you're encountering a timeout issue when making long-running API calls (approximately 70 seconds) through the dev tunnel.
Dev tunnels currently have a fixed timeout limit of 60 seconds. This limit cannot be configured or extended at this time. Therefore, any API call that takes longer than 60 seconds will result in a timeout error.
Here are some recommended workarounds
- Optimize the API Call:
Consider using caching or breaking the task into smaller chunks to reduce execution time.
Offload long-running operations to background tasks and return a status or job ID to the client.
- Avoid Dev Tunnels for Long-Running Requests:
For development scenarios involving long-running requests, consider using localhost or a local network connection instead of dev tunnels.
- Feature Request:
You may submit a feature request on the Visual Studio GitHub repository to support configurable timeout settings.
Hope my recommendations helpful.