🐛 bug fix requests timing out after 40 seconds.
This is such a stupid bug. I swear I checked this exact piece of code for this exact bug and it wasn't there. But after I fixed it, I had no problem running a download for 11 hours straight. This fix won't affect a case where the firewall is actually closing long- running connections (which is bad behavior, but it could happen) or a case where the Internet is just flakey and the connection drops. But it will fix the most common case where both client and server are on robust connections and the download times out anyway.main
							parent
							
								
									c1118971b0
								
							
						
					
					
						commit
						f05257d833
					
				|  | @ -235,7 +235,7 @@ pub async fn run_server ( | |||
| 	
 | ||||
| 	let client = Client::builder () | ||||
| 	.default_headers (headers) | ||||
| 	.timeout (Duration::from_secs (40)) | ||||
| 	.connect_timeout (Duration::from_secs (30)) | ||||
| 	.build ().map_err (ServerError::CantBuildHttpClient)?; | ||||
| 	let handlebars = file_server::load_templates (&asset_root)?; | ||||
| 	
 | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue
	
	 _
						_