You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Some operations in this method are long running, that is, it's expected that `body.call(stream)` could literally run indefinitely. In order to facilitate garbage collection, we want to nullify as many local variables before calling the streaming body. This ensures that the garbage collection can clean up as much state as possible during the long running operation, so we don't retain objects that are no longer needed.
65
-
63
+
66
64
ifbodyandprotocol=response.protocol
65
+
# We force a 101 response if the protocol is upgraded - HTTP/2 CONNECT will return 200 for success, but this won't be understood by HTTP/1 clients:
66
+
write_response(@version,101,response.headers)
67
+
67
68
stream=write_upgrade_body(protocol)
68
69
69
70
# At this point, the request body is hijacked, so we don't want to call #finish below.
0 commit comments