Socket has 20kb read window
due to downstream handler.
It reads 16kb from the fd
TLS Decrypt Data
Application Protocol
Data Queued
Socket has 4kb window
due to downstream handler.
It reads 4kb
TLS Decrypt Data
Application Protocol
Data Queued
Event Loop yields
control back to
channel
Context
Switch
Application Protocol
Clears its internal
buffer.
TLS Handler
sees new window
it can take more data
Socket Handler
Sees new window
schedules read task
Context Switch
Socket has 20kb window
due to downstream handler.
read returns EAGAIN.
Event Loop yields
control back to
channel
yield until event-loop
notifies on fd state
change
Terminal
Nothing left for
channel to do
until window opens
Event Loop observes
fd state change.
Notifies Subscriber
send_message
send_message
send_message
send_message
update_window message
update_window