Uploaded image for project: 'Infinispan'
  1. Infinispan
  2. ISPN-12099

REST server prevents connection reuse for some resources

This issue belongs to an archived project. You can view it, but you can't modify it. Learn more

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 11.0.5.Final, 12.0.0.Final
    • 11.0.1.Final
    • REST
    • None
    • Hide

      1) Start the server

      2) Execute two successive requests

      curl -v -u user:user http://localhost:11222/rest/v2/server --next -u user:user http://localhost:11222/rest/v2/server
      

      3) Check the headers

      The first response contains the keep-alive header, which prompts cURL to reuse the connection

      < HTTP/1.1 200 OK
      < Content-Type: application/json
      < content-length: 46
      < connection: keep-alive
      

      But when attempting the reuse, it fails because the connection was closed:

      * Connection died, retrying a fresh connect
      * Closing connection 0
      * Issue another request to this URL: 'http://localhost:11222/rest/v2/server
      
      Show
      1) Start the server 2) Execute two successive requests curl -v -u user:user http://localhost:11222/rest/v2/server --next -u user:user http://localhost:11222/rest/v2/server 3) Check the headers The first response contains the keep-alive header, which prompts cURL to reuse the connection < HTTP/1.1 200 OK < Content-Type: application/json < content-length: 46 < connection: keep-alive But when attempting the reuse, it fails because the connection was closed: * Connection died, retrying a fresh connect * Closing connection 0 * Issue another request to this URL: 'http://localhost:11222/rest/v2/server

            gfernand@redhat.com Gustavo Fernandes (Inactive)
            gfernand@redhat.com Gustavo Fernandes (Inactive)
            Archiver:
            rhn-support-adongare Amol Dongare

              Created:
              Updated:
              Resolved:
              Archived: