SomberNight
14a032a0b1
disconnect from servers on exception
7 years ago
Janus
e9ceeb85af
async block headers
7 years ago
Janus
19387ff911
aiorpcx: simplify open_session
7 years ago
SomberNight
a4ffa0b22a
interface: clean-up proxy username/pw handling
7 years ago
SomberNight
6700364ac8
interface: fix cert handling
...
notably os.unlink cannot be inside the "with open"
7 years ago
Janus
8f36c9167d
aiorpcx: remove callback based code, add session to Interface
7 years ago
Janus
f733cb8947
aiorpcx: socks support
7 years ago
ThomasV
c53caecd1e
fix else statement
7 years ago
Janus
89a01a6463
aiorpcx: pin certificates
7 years ago
Janus
780b2d067c
Whitelist classes in verbose (-v) option
8 years ago
Janus
097ac144d9
file reorganization with top-level module
8 years ago
SomberNight
5f050aa13e
follow-up prev
8 years ago
SomberNight
5220451b73
fix #4457
8 years ago
Neil
e0a6b082d2
First message on an interface is server.version ( #4407 )
...
- Use server.ping to ping (valid as of protocol version 1.2) rather
than server.version (deprecated as a ping)
- Ping every 5 mins rather than every 1 minute. By default servers
don't consider a connection stale until 10 minutes of inactivity.
- Remove unused last_request member of interface
Port of c3f26e59db
8 years ago
SomberNight
c8bed8791a
assert datadir available
8 years ago
Dimitris Apostolou
989c9c2b55
Fix typos
8 years ago
ThomasV
ad6dd73a03
do not catch OSError in pipe.send (fix ANR on some versions of Android)
8 years ago
SomberNight
9b7536e75c
use explicit utf-8 encoding when opening files in text mode
8 years ago
ThomasV
4137ae94a0
flush certificate file; might fix #4059
8 years ago
SomberNight
08aee6a857
logging - use self.print_error instead of util.print_error
8 years ago
fr3aker
b7d587c6ac
fix parsing of ipv6 addresses in interface
8 years ago
Justin Turner Arthur
9a0aa9b478
Remove Python 2 support imports.
8 years ago
SomberNight
07e9415c2d
interface ssl: besides TLS 1.1, also allow later versions
8 years ago
ThomasV
1cbc794229
interface: catch py3 exceptions
8 years ago
ThomasV
216e9403be
cleanup six (no python2 support)
8 years ago
ThomasV
4df5997940
catch wrap_socket timeouts
8 years ago
ThomasV
1a6e41cec8
python3 updates
8 years ago
fr3aker
8a15581d8e
fix imports
8 years ago
Dmitry Sorokin
d304ccdf17
py3 in qtgui
8 years ago
Dmitry Sorokin
5be78950ca
py3
8 years ago
ThomasV
7daa8ebfdd
interface: close wire is response is not dict
9 years ago
ThomasV
29e2570d3d
prevent busy looping
9 years ago
ThomasV
d61ccd4275
throttle send_requests
9 years ago
ThomasV
5661aabaa4
revert to daemon for interface code
10 years ago
ThomasV
5f3b6af2e0
interface: do not use daemon threads
10 years ago
ThomasV
d3a9af9e79
catch exception in interface.close
10 years ago
ThomasV
a0b861cd8f
fix bug in interface.get_responses
10 years ago
ThomasV
305843999e
Relicensing
10 years ago
ThomasV
fe9ec6de06
reformatting
10 years ago
ThomasV
614f3df4b8
Revert "Use ssl.PROTOCOL_TLSv1 on client side to avoid SSLv23"
...
This reverts commit 4731418af9 .
10 years ago
Kefkius
f329143733
Fix typo in Connection docstring
...
Fix a small typo in Connection docstring.
10 years ago
Neil Booth
6f1367fea6
Unify message IDs between network and interfaces
...
Previously network.py had its own idea of request IDs,
and each interface had its own which was sent on the wire.
The interface would jump through hoops to translate one
to the other.
This unifies them so that a message ID is passed when
queueing a request, in addition to the method and params.
network.py is now solely responsible for message ID management.
Apart from being simpler and clearer, this also should be faster
as there is much less data structure manipulation and rebuilding
happening.
10 years ago
Neil Booth
93b99ebded
Handy new class PrintError
...
Saves adding "def print_error" to endless classes.
10 years ago
Neil Booth
cdcd4d7215
Fix 'tuple' object has no attribute 'copy'
...
Occurred when switching interfaces and there were unanswered
requests that need resending. This bug isn't new; it's been
there since at least 3rd June.
10 years ago
Neil Booth
748662dede
Add a debugging traceback.
10 years ago
Neil Booth
49a48d52ac
Use select.
10 years ago
ThomasV
85d9b8aa8d
fix: dePem cert before parsing
11 years ago
ThomasV
ca3c320ef4
simplify x509 constructor
11 years ago
ThomasV
476d198be9
fix missing occurences of X509.parse
11 years ago
ThomasV
380bccacf0
request_queue.put should never block, because maxsize is not set
11 years ago