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

REST server prevents connection reuse for some resources

    XMLWordPrintable

    Details

    • Steps to Reproduce:
      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

      Attachments

        Activity

          People

          Assignee:
          gustavonalle Gustavo Fernandes
          Reporter:
          gustavonalle Gustavo Fernandes
          Votes:
          0 Vote for this issue
          Watchers:
          1 Start watching this issue

            Dates

            Created:
            Updated:
            Resolved: