curl delay or wait for 1 second on HTTP POST requests

Solution Verified - Updated -

Issue

  • curl delay or wait for 1 second on HTTP POST requests
  • Using curl to perform a HTTP POST to a webserver, there is a delay of over 1000ms processing the reply from the httpd
  • Time of curl command is expected to be more like 20-90ms, not 1000ms:
time curl -H "Content-Type: application/xml" -d @body.xml -X POST http://127.0.0.1:8080/path/to/handler

real    0m1.015s
user    0m0.005s
sys     0m0.007s

Environment

  • Red Hat Enterprise Linux
  • curl commandline binary or other application using libcurl
  • HTTP POST

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content