Skip to content

REST plugin hangs when more than 256 local replies #1212

@OlivierHecart

Description

@OlivierHecart

Describe the bug

Issuing a HTTP GET request on a REST plugin where there are more than 256 local replies to the GET hangs. Local replies are replies that are answered by the local router, typically the local router admin space.

To reproduce

  1. Start Zenoh router:
    ./zenohd
  2. Start 257 z_queryable examples:
    for i in $(seq 0 256); do ./z_queryable -k test/$i -m client -e tcp/localhost:7447 & sleep 0.1; done
  3. Get queryables from admin space through REST:
    curl http://localhost:8000/@/**/queryable/**

System info

  • Platform: MacBook Air
  • CPU: M2
  • Zenoh commit: 869ace6

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions