WebSockets - what happens when worker is upgraded

When we upgrade our Worker - does CloudFlare terminate active sockets? We think we're seeing behavior where an old version of a worker is around for some time with a live socket - probably with multiple open sockets. Is this expected behavior?
2 Replies
DaniFoldi
DaniFoldi8mo ago
If my understanding is correct (and up to date), old connections are given 30 seconds before they are forcefully terminated by the runtime. So if that "some time" you're referring to is less than a minute, it's probably due to that.
joshtwist
joshtwist8mo ago
awesome, will doublec check