bondy-io / bondy

Bondy is an open source, always-on and scalable application networking platform connecting all elements of a distributed application—offering service and event mesh capabilities combined. Bondy implements the open Web Application Messaging Protocol (WAMP) and is written in Erlang.
https://www.bondy.io
Apache License 2.0
129 stars 12 forks source link

Fix an error when a call timeout is provided by the client (AB|JS and… #8

Closed alejandro-miguez closed 2 years ago

alejandro-miguez commented 2 years ago

Fix an error when a call timeout is provided by the client (AB|JS and AB|Python works with timeout option in seconds). The error is raised in tuplespace_queue module in function future_time produced by the module bondy_rpc_promise in function enqueue that assumes the received timeout is in milliseconds to transform it in seconds. The change is in bondy_utils:timeout to detect this situation and always returns timeout expressed in ms.

Maybe to check the behavior in tuplespace_queue module regarding to the infinity usages