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

REST server prevents connection reuse for some resources

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 12.0.0.Dev01, 11.0.5.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

    Attachments

      Activity

        People

          gfernand@redhat.com Gustavo Fernandes (Inactive)
          gfernand@redhat.com Gustavo Fernandes (Inactive)
          Votes:
          0 Vote for this issue
          Watchers:
          1 Start watching this issue

          Dates

            Created:
            Updated:
            Resolved: