BlueBrain / Rockets

REST and websockets C++ library
GNU Lesser General Public License v3.0
38 stars 8 forks source link

Add support for cancellable requests #15

Closed tribal-tec closed 6 years ago

tribal-tec commented 6 years ago

What happens if the client uses the same ID multiple times?

That's not handled today as well? What should be the handling there anyways? It's independent of cancel imo.

rdumusc commented 6 years ago

the risk is that the requestId is used as a key for canceling pending requests, so maybe that could lead to unexpected situations? Edit: I noticed that we should take into account the fact that multiple clients can use the same id.