Commit Graph

196 Commits

Author SHA1 Message Date
ThomasV f32f1183fc print_error methods. request timeout for interface 2015-03-12 21:39:05 +01:00
ThomasV 799a08514b move proxy logic to network.py. reload socket module if proxy is disabled 2015-03-12 12:56:06 +01:00
ThomasV ae7405a10f remove old http interface code, not used 2015-03-12 11:55:10 +01:00
ThomasV 92987d9019 add comment about proxy side effect 2015-03-10 09:43:22 +01:00
ThomasV 73d8ba24d9 fix network connection issues 2015-03-07 22:47:25 +01:00
ThomasV fdaf4e42a9 print reason if connection fails 2015-02-28 19:45:10 +01:00
ThomasV b3364b87d1 interface: don't show traceback on error 104 2015-02-21 14:45:09 +01:00
ThomasV 992a634a77 serialize: handle case where proxy is None 2015-01-29 11:30:42 +01:00
ThomasV 30763a6555 fix config: serialize/deserialize proxy 2015-01-29 11:21:17 +01:00
ThomasV c225795793 use ssl.PROTOCOL_SSLv23 2014-10-31 14:59:59 +01:00
Tafelpoot d9c5250a6f removed trailing whitespace and fixed indentation in history widget 2014-10-21 19:05:51 +02:00
ThomasV 60e5450a0e rm print statement 2014-09-28 23:20:52 +02:00
ThomasV 0c0da6a36d use certs from request module in interface.py 2014-09-28 23:19:52 +02:00
ThomasV 52450289ff we must check host name if cert is signed by CA 2014-09-19 10:18:33 +02:00
ThomasV 889ac782c1 simplify interface.get_socket, and fix a bug with new certificates 2014-09-19 09:25:44 +02:00
ThomasV dd849964d1 interface: forward errors 2014-09-05 14:51:37 +02:00
ThomasV 8ca42bbf43 accept ssl certs signed by CA 2014-08-22 10:33:13 +02:00
ThomasV ae56de3160 rm dead code 2014-08-18 18:23:45 +02:00
ThomasV 3a9bb3cd43 interface: print debug message with the correct id 2014-08-13 21:58:01 +02:00
ThomasV efa0972971 use ping time to determine if we are disconnected 2014-07-29 17:57:03 +02:00
ThomasV 411a87e0a3 fix disconnection error 2014-07-29 14:19:23 +02:00
ThomasV 58c817f81a close interfaces on shutdown 2014-07-29 12:13:21 +02:00
ThomasV 44072a4f48 separate interface classes 2014-07-29 09:28:27 +02:00
ThomasV ed8f9666df remove interface.synchronous_get 2014-07-29 00:15:21 +02:00
ThomasV fb878e1045 fix: catch server.version 2014-07-28 08:23:28 +02:00
ThomasV 28df27fba2 update interface.py 2014-07-28 00:13:40 +02:00
ThomasV 9efc25bdba interface: use parse_json 2014-07-26 16:24:22 +02:00
ThomasV 9a07c1cb44 rename process_response 2014-07-26 15:47:30 +02:00
ThomasV 191520f064 interface.py: print -> print_error 2014-07-25 17:21:17 +02:00
ThomasV f9985ae233 use x509 to check if server certificate has expired 2014-06-27 11:36:51 +02:00
ThomasV 80a988e337 slightly better notifications. at least, it fixes #652 2014-04-17 17:38:21 +02:00
ThomasV 696766c370 json-friendly debug messages. fix #659 2014-04-17 17:20:07 +02:00
ThomasV 268a099f87 sync_get 2014-01-29 16:48:00 +01:00
dmcdad 292ab39553 Update interface.py
Fix timeout problem under Python 2.7.1 where a socket.error 60 is thrown instead of socket.timeout exception.
2014-01-15 08:49:26 -06:00
ThomasV f4f418e9ec return message ids with send_http too 2013-12-21 19:27:49 +01:00
ThomasV de94eaadeb fix issue occuring with set_server 2013-12-17 18:20:54 +01:00
ThomasV 60b6fd399d exit gracefully if host cannot be resolved. Fixes #488 2013-12-13 09:22:39 +01:00
ThomasV cff8515e3c on sl error: print exception inside for loop, and do not continue the loop 2013-11-14 09:23:38 +01:00
Emery Hemingway 8f87f7e954 IPv6 support 2013-11-13 14:46:36 -05:00
ThomasV ee141f6d37 fix connect on windows 2013-11-11 16:59:36 +01:00
Bryan Stitt 225d8b83a3 don't use bare except 2013-11-09 21:23:57 -08:00
Bryan Stitt f0eb0eccde replace BaseException with Exception 2013-11-09 20:21:02 -08:00
ThomasV 83e699c314 sanitize server in interface.py (fix bug #309) 2013-10-08 19:52:17 +02:00
ThomasV d2af935fc7 use a regexp for the ssl bug workaround 2013-10-08 13:24:54 +02:00
ThomasV f858f69c56 workaround android bug with ssl certificates 2013-10-08 13:08:13 +02:00
ThomasV 66f224eab4 update a few scripts 2013-10-06 12:28:45 +02:00
ThomasV a6934f6796 support for all protocols 2013-10-05 11:16:09 +02:00
ThomasV 0b2c09d20b interface.debug flag 2013-10-04 16:00:20 +02:00
ThomasV c18a49b8fe auto-cycle: switch to the longest chain 2013-10-03 14:56:48 +02:00
ThomasV 77dd1ae1b1 handle handshake failures in SSL 2013-10-03 10:27:39 +02:00