diff options
author | Mathieu Othacehe <othacehe@gnu.org> | 2020-10-03 10:14:33 +0200 |
---|---|---|
committer | Mathieu Othacehe <othacehe@gnu.org> | 2020-10-03 10:14:33 +0200 |
commit | af84a00818b53d80c1360ea7ed7eeb6e1e3bb4c6 (patch) | |
tree | 77365ca2e24dadf6a305bcf90aff59e8bbeadeca /configure.ac | |
parent | d9c98705033de7b6c1a65d57ce1192bb25c68ac9 (diff) | |
download | cuirass-af84a00818b53d80c1360ea7ed7eeb6e1e3bb4c6.tar cuirass-af84a00818b53d80c1360ea7ed7eeb6e1e3bb4c6.tar.gz |
Add a timeout on database worker query send.
The number of database worker is limited, and can introduce some
starvation. Print a message each time a two seconds timeout expires while
sending an SQL query to a worker.
* src/cuirass/utils.scm (put-message-with-timeout): New procedure.
(call-with-worker-thread): Rename timeout and timeout-proc arguments to
receive-timeout and receive-timeout-proc arguments. Add two new arguments:
send-timeout and send-timeout-proc. Use put-message-with-timeout to honor
them.
* src/cuirass/database.scm (with-db-worker-thread): Adapt accordingly and pass
send-timeout and send-timeout-proc arguments.
Diffstat (limited to 'configure.ac')
0 files changed, 0 insertions, 0 deletions