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
That is because window_size: 65535 is set initially, according to standard, but is not updated when the server sends WINDOW_UPDATE frames.
Each time Tesla sends data using Mint.HTTP.stream_request_body, the window size is decremented by data’s size. When the window size gets low, the server sends WINDOW_UPDATE frames to increment the connection’s window size. Calling Mint.HTTP.stream to read responses will automatically do this.
To reproduce,
returns
:exceeds_window_sizeerror.Full error
That is because
window_size: 65535is set initially, according to standard, but is not updated when the server sends WINDOW_UPDATE frames.Each time Tesla sends data using
Mint.HTTP.stream_request_body, the window size is decremented by data’s size. When the window size gets low, the server sends WINDOW_UPDATE frames to increment the connection’s window size. CallingMint.HTTP.streamto read responses will automatically do this.https://github.com/teamon/tesla/blob/754d4a6ffe41ff508fc7fa460508a40e965b2960/lib/tesla/adapter/mint.ex#L178-L187
However, the adapter repeatedly calls
Mint.HTTP.stream_request_bodywithout callingMint.HTTP.streamso the window size hits zero and Mint errors.