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
Apparently some of the forks already fix this, but we ran into POST requests being mangled when running this headless in a virtualized environment. After investigation, we found this block, which sets the read offset to the # of bytes read every iteration.
This doesn't happen on localhost because Read() fully empties the stream in one iteration but as soon as we deployed it on a VM Read() gets called multiple times and it started chopping up our uploaded data.
To fix the issue we corrected the usage of Read():
uniwebserver/UniWebServer/Assets/UniWebServer/Lib/WebServer.cs
Lines 123 to 126 in 5b0a566
Apparently some of the forks already fix this, but we ran into POST requests being mangled when running this headless in a virtualized environment. After investigation, we found this block, which sets the read offset to the # of bytes read every iteration.
This doesn't happen on localhost because
Read()
fully empties the stream in one iteration but as soon as we deployed it on a VMRead()
gets called multiple times and it started chopping up our uploaded data.To fix the issue we corrected the usage of
Read()
:Hope this saves someone some time. That's all.
The text was updated successfully, but these errors were encountered: