Commit Graph

180 Commits

Author SHA1 Message Date
Tim Gates 3ad7bc87e5
docs: fix simple typo, positibe -> positive
There is a small typo in src/util/UpnpPunch.py.

Should read `positive` rather than `positibe`.
2020-12-22 07:44:57 +11:00
Tamas Kocsis 57dda4e6d6 Rev4549, Fix startup OpenSSL lib find recursion error 2020-11-09 01:21:52 +01:00
Tamas Kocsis c515e26cd6 Fix OpenSSL dll/so location find patcher 2020-11-03 02:51:42 +01:00
Tamas Kocsis 8dc5aee8aa Js based redirecting template formatting 2020-09-08 19:32:10 +02:00
shortcutme 6bd49e8aff
Fix killing greenlets gevent exception 2020-06-30 17:04:47 +02:00
shortcutme ea6016d004
Fix latest gevent compatibility 2020-06-18 17:22:45 +02:00
Ivanq 33af83b2cd
Search for any OpenSSL version in LD_LIBRARY_PATH 2020-03-10 22:31:26 +03:00
ZeroNet 296e4aab57
Fix sslcrypto thread safety (#2454)
* Use sslcrypto instead of pyelliptic and pybitcointools

* Fix CryptMessage

* Support Python 3.4

* Fix user creation

* Get rid of pyelliptic and pybitcointools

* Fix typo

* Delete test file

* Add sslcrypto to tree

* Update sslcrypto

* Add pyaes to src/lib

* Fix typo in tests

* Update sslcrypto version

* Use privatekey_bin instead of privatekey for bytes objects

* Fix sslcrypto

* Fix Benchmark plugin

* Don't calculate the same thing twice

* Only import sslcrypto once

* Handle fallback sslcrypto implementation during tests

* Fix sslcrypto fallback implementation selection

* Fix thread safety

* Add derivation

* Bring split back

* Fix typo

* v3.3

* Fix custom OpenSSL discovery
2020-03-05 17:54:46 +01:00
Ivanq 09e65e1d95 Make ThreadPool a context manager to prevent memory leaks 2020-03-05 08:06:57 +03:00
shortcutme c4f65a5d7b
Rev4462, Experimental fix for segfault on shutdown 2020-03-04 21:50:28 +01:00
shortcutme 1cc0ec3f31
Indepently configurable OpenSSL lib/bin file 2020-02-20 17:23:00 +01:00
shortcutme 2c826eba2d
Rev4447, Fix Msgpack 1.0.0 compatibility 2020-02-19 16:48:14 +01:00
shortcutme b6d0bf8f6b
Use msvcrt 110 and 120 when 110 is not avaliable 2020-01-04 16:48:37 +01:00
shortcutme 2acf24c336
Fix ipv4 checking regexp 2019-12-21 02:59:18 +01:00
shortcutme 8bfef12ad4
Don't try to pack unknown peer addresses 2019-12-19 02:16:41 +01:00
shortcutme 7af8d1cd93
Save last lock time 2019-12-18 16:42:47 +01:00
shortcutme abee87bbec
Wait for threadpool kill with 1s timeout to fix memory leak test 2019-12-17 21:02:48 +01:00
shortcutme 77869830c5
Fix shutdown hang 2019-12-17 20:36:52 +01:00
shortcutme eac25caf28
Log packing peer arrors as debug 2019-12-17 15:00:23 +01:00
shortcutme b421893434
Return timer greenet 2019-12-17 15:00:09 +01:00
shortcutme 5c1b34387c
Noparallel multi thread compatibility 2019-12-17 14:51:57 +01:00
shortcutme dfd55c3957
Fix memory leak when using sleep in threads 2019-12-17 14:50:38 +01:00
shortcutme b21895fa78
Kill threadpool properly 2019-12-17 14:50:10 +01:00
shortcutme 495d695c5a
Fix threadpool apply and spawn when threadpool is full 2019-12-17 14:49:50 +01:00
shortcutme 3309489c24
Only call the function in separate thread when in the main loop 2019-12-17 14:48:11 +01:00
shortcutme 8a5a75e68f
Allow pass calls to the main loop 2019-12-17 14:47:27 +01:00
shortcutme c1df78b97f
Name threadpools 2019-12-17 14:43:33 +01:00
shortcutme 958882c1c5
Revert "Switch to sslcrypto for cryptography tasks (#2338)"
This reverts commit fbc7b6fc4f.
2019-12-15 18:30:42 +01:00
Ivanq fbc7b6fc4f Switch to sslcrypto for cryptography tasks (#2338)
* Use sslcrypto instead of pyelliptic and pybitcointools

* Fix CryptMessage

* Support Python 3.4

* Fix user creation

* Get rid of pyelliptic and pybitcointools

* Fix typo

* Delete test file

* Add sslcrypto to tree

* Update sslcrypto

* Add pyaes to src/lib

* Fix typo in tests

* Update sslcrypto version

* Use privatekey_bin instead of privatekey for bytes objects

* Fix sslcrypto

* Fix Benchmark plugin

* Don't calculate the same thing twice

* Only import sslcrypto once

* Handle fallback sslcrypto implementation during tests

* Fix sslcrypto fallback implementation selection
2019-12-15 12:46:06 +01:00
shortcutme 66a1c4d242
Multi-process and gevent loop friendly lock 2019-11-30 02:07:30 +01:00
shortcutme 8b6f221e22
Formatting 2019-11-27 03:02:18 +01:00
shortcutme 29346cdef5
Faster, async local ip discovery 2019-11-25 14:40:52 +01:00
shortcutme 9299e5b614
Kill greenlets with notify 2019-11-20 14:07:33 +01:00
shortcutme 58214c0ac3
Move file writes and reads to separate thread 2019-11-19 02:16:20 +01:00
shortcutme 1c607645c7
Track and stop site connected greenlets on delete 2019-11-19 02:07:51 +01:00
shortcutme 28d4fc5d12
Update location of bundled OpenSSL on macOS 2019-10-24 12:22:54 +02:00
shortcutme b21719e2f2
Fix OpenSSL lib loading on macOS 2019-10-24 03:08:27 +02:00
shortcutme 73e0aa17c4
Don't encode byte responses 2019-10-06 03:10:43 +02:00
shortcutme 917a2e59ce
Fix compacting large json files 2019-10-06 03:10:20 +02:00
shortcutme 119e1a9bf0
Simple cache decorator 2019-10-06 03:09:48 +02:00
shortcutme 4293a44c93
Don't try to find OpenSSL 1.0.x 2019-09-15 22:08:20 +02:00
shortcutme d3fce8ca36
Support Linux bundle OpenSSL 2019-09-04 20:16:32 +02:00
shortcutme adffbd1973
New function flagging decorator class to keep track permissions 2019-08-26 02:55:01 +02:00
shortcutme bd5c2b1daa
Also try to load OpenSSL dll from Python/DDLs directory 2019-08-09 13:18:40 +02:00
shortcutme 5e90cd9714
Move advanced json formatter to helper.py 2019-08-02 14:05:14 +02:00
shortcutme 06406fa46c
Avoid bare exceptions 2019-08-02 14:04:18 +02:00
shortcutme 902a1b1c88
Fix OpenSSL dll loading on Windows 2019-07-18 03:33:56 +02:00
shortcutme 6cffa1c0ca
Change maxstdio using ctypes as win32file module is not included with Python3 by default 2019-07-18 03:31:57 +02:00
shortcutme ff32f822ba
Raise exception instead of using assert 2019-07-03 18:35:55 +02:00
shortcutme 862e19a263
Rev4104, Don't start blocking Noparallel calls in separate greenlet to be able to catch exceptions. 2019-06-11 17:04:37 +02:00