Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow custom nodelay #28

Closed
wants to merge 1 commit into from

Conversation

fdmanana
Copy link
Contributor

@fdmanana fdmanana commented Jan 9, 2011

Hi Chandru,

Please see the commit message:
fdmanana@901eb69

When uploading large bodies, specially with a streaming function, this allows the caller to improve network throughput.

I aslo removed the to_integer/1 function since it was useless in the do_connect/4 function and not used anywhere else (compiler warning).

thanks

Currently ibrowse defined the nodelay socket option to true, not allowing the caller
to supply its own value, which would also make the sndbuf option useless if the caller
supplied it as well.
When sending large bodies, setting nodelay to false with a custom sndbuf can improve
network throughput very significantly. For e.g., custom tests reduced an upload from
16 minutes to about 12 minutes.
@cmullaparthi
Copy link
Owner

Thanks. Fixed.

This pull request was closed.
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.

2 participants