Change fetch requests in plasma manager to use a single timer. (#234)

* Change fetch requests in plasma manager to use a single timer.

* Fix manager tests, other cleanups.
This commit is contained in:
Robert Nishihara
2017-02-01 12:21:52 -08:00
committed by Philipp Moritz
parent 6ad2b5d87a
commit f69d4aaaa7
3 changed files with 28 additions and 25 deletions
+5
View File
@@ -177,6 +177,11 @@ TEST request_transfer_retry_test(void) {
free(manager_vector);
event_loop_add_timer(local_mock->loop, MANAGER_TIMEOUT * 2, test_done_handler,
local_mock->state);
/* Register the fetch timeout handler. This is normally done when the plasma
* manager is started. It is needed here so that retries will happen when
* fetch requests time out. */
event_loop_add_timer(local_mock->loop, MANAGER_TIMEOUT, fetch_timeout_handler,
local_mock->state);
event_loop_run(local_mock->loop);
int read_fd = get_client_sock(remote_mock2->read_conn);