Lightning-Universe / InVideo-search_app

Apache License 2.0
14 stars 9 forks source link

server responses that take >30s aren't returned #15

Open nicolai86 opened 1 year ago

nicolai86 commented 1 year ago

details from ONC-213:

When search_video takes longer than 30 seconds the search results aren't returned to the browser. Instead, the connection is marked as stalled. The request processing is being retried inside uvicorn/ fastapi, however once the slow method returns, the results aren't forwarded to the browser. Only if the method returns within 30 seconds the results are eventually forwarded to the browser.

Screen Shot 2022-10-03 at 10 47 00 AM

This can be reproduced easily by ie adding a sleep statement to search_video; alternatively the app needs to be restarted a couple of times (~4 times) to end up with a slow search processing.

Borda commented 1 year ago

cc: @kaushikb11