Next.js Discord

Discord Forum

Web Streaming Data - Timeout limit?

Unanswered
Barbary Lion posted this in #help-forum
Open in Discord
Barbary LionOP
I'm wondering if edge/serverless functions using web streaming still have a 60s timeout limit on the pro plan.

https://vercel.com/docs/functions/edge-functions/streaming#constraints

I'm looking at the constraints and only seeing something about needing to send data within 30s - but how long can you keep the connection open for?

3 Replies

European sprat
isn't that 60s response time?
like initial response
@Barbary Lion I'm wondering if edge/serverless functions using web streaming still have a 60s timeout limit on the pro plan. https://vercel.com/docs/functions/edge-functions/streaming#constraints I'm looking at the constraints and only seeing something about needing to send data within 30s - but how long can you keep the connection open for?
if you stream the data on the edge, the time limit is applied until the first byte is streamed back to the browser only. so if you take 1 minute to stream the first word then that is a problem, but if you take 1 second to stream the first word then 5 minutes to stream the remaining content then it's fine (as long as it is on the edge)