我使用微软的office web apps2013实现了预览效果, 现在大多数文件是好用的了, 但是文件太大的话, 由于下载时间长, 总处理时长一旦超过30秒, 程序就自动终止了.
服务器场设置如图
我在日志打印位置, 找到了发送错误时的日志, 全文搜索"30000", 找到下面这两句
12/11/2020 11:11:35.68 w3wp.exe (0x1AD0) 0x18CC Office Web Apps PowerPoint editing al26k Medium EditEnvironment::PrintSettings Setting Name:PowerPointEditServerTimeoutPeriodInMilliSeconds Value:30000 ExpiresUTC:12/11/2020 02:24:36 FOverridden:False 24d2f521-3969-4289-8948-945e62b43457
12/11/2020 11:07:26.30 w3wp.exe (0x012C) 0x29D0 Office Web Apps WAC Hosting Interaction adhrp Monitorable HttpRequestAsync (RedirectFollower) aborted due to timeout [timeout in MS:30000, cbWrote:0, cbRead:3851129, url:http://183b37f077.imwork.net/renren-fast/myFile/fileView/3210DDBEAA16948A702B6049B8D9A202.pdf?fileBodyId=1274&token=a43dce30b59d0b988bce07f5135f1854] 449e0d7f-44b6-4b45-bcb5-41d983f1a0b6
我找遍了officewebapps的参数设置官方文档:https://docs.microsoft.com/en-us/powershell/module/officewebapps/new-officewebappsfarm?view=officewebapps-ps
没有找到相关参数, 我怀疑是officewebapps依赖的其他服务有限制, 但是网上关于officewebapps的文章, 基本全都是抄的同一个, 完全没有参考价值.
文件大小的限制我已经改为50MB了, 不要说这个原因了