Is there a data limitation in the dlib::outgoing_things HTTP server response? dlib::server_http #2823
Replies: 2 comments 5 replies
|
See |
|
Dear Davis King, DLib dlib::http_server is working perfectly. And the response buffer size server_http::get_max_content_length() was 10485760 BYTES. What was going wrong was the client I was using to test the server_http. For some reason, it was truncating the response. I had created it in Java, and the error was fixed when I changed: I don't know why, but it started working after implementing this loop, and this loop runs some times. In other words, for some reason, in Java, the "HttpURLConnection::getInputStream()" from the "import java.net.HttpURLConnection;" delivers fragmented pieces of the received buffer. This problem has been resolved ok! Thank you for your attention and for the DLib! |
Uh oh!
There was an error while loading. Please reload this page.
I'm trying to make a webhook. I'm using dlib::server_http. I used the example dlib/examples/server_http_ex.cpp to implement it. However, in the "const std::string on_request(const dlib::incoming_things& incoming, dlib::outgoing_things& outgoing)" function, when the outgoing response exceeds 73,660 bytes, it loses the remainder of the message. Is there a place where I can change this size?
When the size is smaller than 73,660 bytes, it works perfectly.
I would greatly appreciate it if someone could clarify this for me.
All reactions