您现在访问的是微软AZURE全球版技术文档网站，若需要访问由世纪互联运营的MICROSOFT AZURE中国区技术文档网站，请访问 https://docs.azure.cn.
Setting Timeouts for File Service Operations
A call to a File service API can include a server timeout interval, specified in the
timeout parameter of the request URI. If the server timeout interval elapses before the service has finished processing the request, the service returns an error.
For operations other than upload and download operations, the maximum timeout interval for File service operations is 30 seconds, and timeouts larger than 30 seconds are reduced to 30 seconds.
For upload and download operations, a transfer rate of 2 min/MB and the size of the file are used to pre-calculate the timeout value before starting the upload or download operation.
The following example REST URI sets the timeout interval for the List Shares operation to 20 seconds: