Set connection timeout: timeout
(self, arg, quiet=False)
| 249 | |
| 250 | # ------------------------[ timeout <seconds> ]----------------------- |
| 251 | def do_timeout(self, arg, quiet=False): |
| 252 | "Set connection timeout: timeout <seconds>" |
| 253 | try: |
| 254 | if arg: |
| 255 | if self.conn: |
| 256 | self.conn.timeout(float(arg)) |
| 257 | self.timeout = float(arg) |
| 258 | if not quiet: |
| 259 | print(("Device or socket timeout: " + str(self.timeout))) |
| 260 | except Exception as e: |
| 261 | output().errmsg("Cannot set timeout", e) |
| 262 | |
| 263 | # send mode-specific command with modified timeout |
| 264 | def timeoutcmd(self, str_send, timeout, *stuff): |
no test coverage detected