Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
Description
When an entire frame is split over many TCP reads/writes the 0-8/9/9-1 codec is effectively using tail recursion to iterate over the buffers to parse the whole frame. When there are a lot of buffers this can cause stack overflow. To guard against this we can simply squash the multiple buffers into a single buffer when we cross a threshold number of buffers.