From 3d3834fd5170890a94fc3acce2b9d170335e94d4 Mon Sep 17 00:00:00 2001 From: miker Date: Tue, 3 Jan 2006 03:11:10 +0000 Subject: [PATCH] moved timeout to global var; later, refactor to command line or config file option (this was needed for storage debuging) git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@618 9efc2488-bf62-4759-914b-345cdb29e865 --- src/srfsh/srfsh.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/srfsh/srfsh.c b/src/srfsh/srfsh.c index 6922487..4870b88 100644 --- a/src/srfsh/srfsh.c +++ b/src/srfsh/srfsh.c @@ -1,5 +1,6 @@ #include "srfsh.h" +int recv_timeout = 120; int is_from_script = 0; FILE* shell_writer = NULL; FILE* shell_reader = NULL; @@ -531,7 +532,7 @@ int send_request( char* server, int req_id = osrf_app_session_make_req( session, params, method, 1, NULL ); - osrf_message* omsg = osrf_app_session_request_recv( session, req_id, 60 ); + osrf_message* omsg = osrf_app_session_request_recv( session, req_id, recv_timeout ); if(!omsg) printf("\nReceived no data from server\n"); @@ -619,7 +620,7 @@ int send_request( char* server, } - omsg = osrf_app_session_request_recv( session, req_id, 5 ); + omsg = osrf_app_session_request_recv( session, req_id, recv_timeout ); } -- 2.11.0