• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

OTClient Body Limit Exceeded

Lbtg

Intermediate OT User
Joined
Nov 22, 2008
Messages
2,312
Reaction score
135
Hey, does anyome ever got this error and found way to fix or someone can try help me out please ?

I updated my sprites, and after that this happens then OTCV8 client tryes to update

1697314335366.png
 
Hey, does anyome ever got this error and found way to fix or someone can try help me out please ?

I updated my sprites, and after that this happens then OTCV8 client tryes to update

View attachment 79251
File src/framework/http/session.cpp:
C++:
void HttpSession::on_request_sent(const boost::system::error_code& ec) {
 if (ec)
return onError("request sending error", ec.message());
 if(m_result->canceled)
return onError("canceled");

m_response.body_limit(512 * 1024 * 1024); // <<< LIMIT
m_response.header_limit(4 * 1024 * 1024);
here is limit of HTTP body set to 512 MB. If your .spr file is bigger, you need to increase this value.
 
File src/framework/http/session.cpp:
C++:
void HttpSession::on_request_sent(const boost::system::error_code& ec) {
 if (ec)
return onError("request sending error", ec.message());
 if(m_result->canceled)
return onError("canceled");

m_response.body_limit(512 * 1024 * 1024); // <<< LIMIT
m_response.header_limit(4 * 1024 * 1024);
here is limit of HTTP body set to 512 MB. If your .spr file is bigger, you need to increase this value.
so whole app must be recompiled ?
 
so whole app must be recompiled ?
Yes.

Encrypting OTCv8 client also compress all files using ZIP compression. I've tested 168 MB .spr file. It compressed to 47 MB.
By encrypting client you can make that file much smaller than 512 MB.
 
Back
Top