]> git.ipfire.org Git - thirdparty/HylaFAX.git/commitdiff
Adjust timeout waiting for responses.
authorAidan Van Dyk <aidan@ifax.com>
Wed, 14 Mar 2007 18:33:11 +0000 (18:33 +0000)
committerAidan Van Dyk <aidan@ifax.com>
Wed, 14 Mar 2007 18:33:11 +0000 (18:33 +0000)
From Lee:
|  commit f12b251834a2344b924dfe1c4f37ca9dec0edff3
|  Author: Lee Howard <faxguy@howardsilvan.com>
|  Date:   Mon Aug 28 17:56:45 2006 +0000
|
|    this timeout needs to be longer ... well, it really needs to be configurable,
|    but for now just making it longer should be helpful

faxd/ClassModem.c++

index 2ed662ff00435722a04aa4ecd84c349c82cdcba3..2e9c740301a2cb07eff25cb3024ce9e563a05216 100644 (file)
@@ -940,7 +940,11 @@ ClassModem::atCmd(const fxStr& cmd, ATResponse r, long ms)
                        resp = (u_char) cmd[++i];
                        if (resp != AT_NOTHING) {
                            // XXX check return?
-                           (void) waitFor(resp, ms);   // XXX ms
+                           // The timeout setting here (60*1000) used to be "ms" (which
+                           // defaults to 30 s), but we find that's too short, especially 
+                           // for long-running escape sequences.  It really needs to be
+                           // escape-configurable, but for now we just make it 60 s.
+                           (void) waitFor(resp, 60*1000);
                            respPending = false;
                        }
                        break;