Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » U++ Core » DEFAULT_MAX_CONTENT_SIZE or max_content_size
DEFAULT_MAX_CONTENT_SIZE or max_content_size [message #17227] Sun, 03 August 2008 14:14
TeCNoYoTTa is currently offline  TeCNoYoTTa
Messages: 138
Registered: July 2008
Location: Egypt
Experienced Member

hello all

i am not sure if this was a bug or not

i think this is a bug .......mmmmmm i dont know

in httpcli.cpp this is written
if ( body.GetLength() + part.GetLength() > DEFAULT_MAX_CONTENT_SIZE )
{
error = NFormat ( t_ ( "Maximum content size exceeded: %d" ), body.GetLength() + part.GetLength() );
return tc_chunked ? chunked : body;
}



but i think it must be like that

if ( body.GetLength() + part.GetLength() > max_content_size )
{
error = NFormat ( t_ ( "Maximum content size exceeded: %d" ), body.GetLength() + part.GetLength() );
return tc_chunked ? chunked : body;

}


so that when i change the value of max_content_size with MaxContentSize(int m) function and make error handling work with it

[Updated on: Sun, 03 August 2008 14:15]

Report message to a moderator

Previous Topic: Interesting struggle with "Moveable<T>" usage in GCC
Next Topic: Problems with UPP_HEAP in multi-threaded
Goto Forum:
  


Current Time: Sat Apr 27 11:51:53 CEST 2024

Total time taken to generate the page: 0.02454 seconds