I recently played around with the Rest API and wanted to send a bit more data to my server and I noticed it would become very slow as soon when I pass 1024 characters in the POST Body.
As soon as I have 1025 or more characters in the Post body, it will consistently take 1s + a bit of delay ~50 to 100ms. If I stay under this limit, it will take only the expected delay of around 50 to 100ms. The delay is not thread blocking in the main thread, but still not really great
Description
Description
Details
Details
- Severity
- Tweak
- Resolution
- Open
- Reproducibility
- N/A
- Operating System
- Windows 7
- Category
- General
Steps To Reproduce
RestApi api = GetRestApi(); RestContext context = api.GetRestContext("http://localhost/text"); string data = ""; for (int i = 0; i < 1024; ++i) // Change to 1025 to data += "a"; context.POST(new RestCallback(), "", data); Print("Request sent");
You need to make sure the endpoint actually reads the post data from the socket. Otherwise it doesn't have the extra delay
Event Timeline
Comment Actions
I can confirm this is an issue for us as well, we would love to see a prompt resolution. These delays are detrimental to our users' experience on websites that rely on data sent from DayZ Rest APIs.