mirror of
				https://github.com/open-webui/mcpo
				synced 2025-06-26 18:26:58 +00:00 
			
		
		
		
	Disable sse_read_timeout to prevent errors after 5 min of inactivity
This commit is contained in:
		
							parent
							
								
									f937a1d213
								
							
						
					
					
						commit
						fb3290fce9
					
				| @ -98,7 +98,7 @@ async def lifespan(app: FastAPI): | ||||
|                     await create_dynamic_endpoints(app, api_dependency=api_dependency) | ||||
|                     yield | ||||
|         if server_type == "sse": | ||||
|             async with sse_client(url=args[0]) as (reader, writer): | ||||
|             async with sse_client(url=args[0], sse_read_timeout=None) as (reader, writer): | ||||
|                 async with ClientSession(reader, writer) as session: | ||||
|                     app.state.session = session | ||||
|                     await create_dynamic_endpoints(app, api_dependency=api_dependency) | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user