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

Disable curl's Expect header #294

Merged
merged 3 commits into from
Mar 5, 2019
Merged

Disable curl's Expect header #294

merged 3 commits into from
Mar 5, 2019

Conversation

djones6
Copy link
Contributor

@djones6 djones6 commented Mar 1, 2019

Description

This relates to #293. If we use Kitura-net's ClientRequest to send a request to a Kitura server (using either Kitura-net or Kitura-NIO) with a payload over a certain threshold, curl will stall for a second because the server does not acknowledge the Expect: 100-continue header that it sends. It still works, but it adds 1 second to the request latency.

We can avoid this by setting an empty Expect header, which disables this feature of curl (it sends the entire request in one shot).

This is particularly beneficial to the Kitura tests, which otherwise take a second each to complete.

Motivation and Context

How Has This Been Tested?

Checklist:

  • I have submitted a CLA form
  • If applicable, I have updated the documentation accordingly.
  • If applicable, I have added tests to cover my changes.

@djones6 djones6 changed the title [WIP] Disable curl's Expect header Disable curl's Expect header Mar 4, 2019
@djones6 djones6 merged commit d837d45 into master Mar 5, 2019
@djones6 djones6 deleted the fasterTests branch March 5, 2019 16:26
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