MCPcopy
hub / github.com/benoitc/gunicorn / _send_pending_data

Method _send_pending_data

gunicorn/http2/connection.py:632–640  ·  view source on GitHub ↗

Send any pending data from h2 to the socket.

(self)

Source from the content-addressed store, hash-verified

630 pass # Best effort
631
632 def _send_pending_data(self):
633 """Send any pending data from h2 to the socket."""
634 data = self.h2_conn.data_to_send()
635 if data:
636 try:
637 self.sock.sendall(data)
638 except (OSError, IOError) as e:
639 self._closed = True
640 raise HTTP2ConnectionError(f"Socket write error: {e}")
641
642 @property
643 def is_closed(self):

Callers 15

initiate_connectionMethod · 0.95
receive_dataMethod · 0.95
_handle_data_receivedMethod · 0.95
send_informationalMethod · 0.95
send_responseMethod · 0.95
send_dataMethod · 0.95
send_trailersMethod · 0.95
reset_streamMethod · 0.95
closeMethod · 0.95

Calls 2

sendallMethod · 0.45