moved timeout to global var; later, refactor to command line or config file option...
authormiker <miker@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Tue, 3 Jan 2006 03:11:10 +0000 (03:11 +0000)
committermiker <miker@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Tue, 3 Jan 2006 03:11:10 +0000 (03:11 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@2589 dcc99617-32d9-48b4-a31d-7c20da2025e4

OpenSRF/src/srfsh/srfsh.c

index 6922487..4870b88 100644 (file)
@@ -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 );
 
        }