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

HTTP/2 POST: Request Entity Too Large

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 10.0.0.CR2
    • None
    • Server

    Description

      Start server-ng and create a cache named 'default':

      curl -v -XPOST -d '{"distributed-cache":{"mode": "SYNC"}}'  -H "Content-type: application/json"   http://localhost:11222/rest/v2/caches/default
      
      

      Try to put an entry using HTTP/2

      curl -v -XPOST -d '1' -H "Content-type: application/json"   http://localhost:11222/rest/v2/caches/default/1 --http2
      
      

      Error 413 is received:

      *   Trying ::1:11222...
      * TCP_NODELAY set
      * connect to ::1 port 11222 failed: Connection refused
      *   Trying 127.0.0.1:11222...
      * TCP_NODELAY set
      * Connected to localhost (127.0.0.1) port 11222 (#0)
      > POST /rest/v2/caches/default/1 HTTP/1.1
      > Host: localhost:11222
      > User-Agent: curl/7.65.3
      > Accept: */*
      > Connection: Upgrade, HTTP2-Settings
      > Upgrade: h2c
      > HTTP2-Settings: AAMAAABkAARAAAAAAAIAAAAA
      > Content-type: application/json
      > Content-Length: 1
      > 
      * upload completely sent off: 1 out of 1 bytes
      * Mark bundle as not supporting multiuse
      < HTTP/1.1 413 Request Entity Too Large
      < content-length: 0
      < 
      * Connection #0 to host localhost left intact
      

      The same command line without http/2 succeeds

      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: