Skip to content

Conversation

@wlandry
Copy link
Contributor

@wlandry wlandry commented Apr 18, 2016

This patch increases the buffer that POST processing uses to 32 kb, which is the same as #MHD_POOL_SIZE_DEFAULT. This speeds up processing large POST's.

@coveralls
Copy link

Coverage Status

Coverage remained the same at 81.476% when pulling 311c208 on wlandry:Increase_POST_buffer into 496458f on etr:master.

mr->pp = MHD_create_post_processor (
connection,
1024,
post_memory_limit,
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would it be possible to use the constant #MHD_POOL_SIZE_DEFAULT directly so that in case it changes in libmicrohttpd also libhttpserver will immediately benefit from the change?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unfortunately, MHD_POOL_SIZE_DEFAULT is only defined in src/microhttpd/daemon.c. So it is not visible to library users.

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see - not much we can do then.

@etr
Copy link
Owner

etr commented Apr 19, 2016

Merging.

@etr etr merged commit e396fe4 into etr:master Apr 19, 2016
@wlandry wlandry deleted the Increase_POST_buffer branch July 14, 2016 23:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants