Commit graph

164 commits

Author SHA1 Message Date
shortcutme a19629d105
Start tor_manager with ConnectionServer 2018-04-29 01:00:37 +02:00
shortcutme 6e598c74f5
Fake utorrent peer_id to avoid possible tracker ban 2018-04-29 00:59:45 +02:00
shortcutme 8828f21f2e
Always create TorManager object with ConnectionServer, move tormanager start to sperate function 2018-04-28 21:51:14 +02:00
shortcutme e93f9eb080
Use tor connection for trackers if trackers_proxy enabled 2018-04-28 21:44:06 +02:00
shortcutme e95bc31def
Fix logging and shutdown 2018-04-12 19:25:50 +02:00
shortcutme 5285699a21
Rev3407, Fix connection timeout checker 2018-04-06 00:51:14 +02:00
shortcutme d927e85eca
ConnectionServer is not running by default 2018-04-04 15:33:02 +02:00
shortcutme 852aaae52e
Randomize fileserver port 2018-04-03 14:45:04 +02:00
shortcutme 270922b460
Fix implicit ssl connection typo 2018-04-03 14:43:41 +02:00
shortcutme 6daf583b4b
Only log detailed message type error with debug_socket argument 2018-03-29 02:45:33 +02:00
shortcutme 1ad966bd80
In passive mode if we have send onion address for every connection not just for tor network 2018-03-14 22:29:00 +01:00
shortcutme 4f472982da
Use broken ssl ip list instead of peer_id 2018-03-14 22:26:59 +01:00
shortcutme f1396b65b9
Blacklist myself on peer id match 2018-03-14 22:26:08 +01:00
shortcutme ba12489c34
Log my and remote handshake 2018-03-14 22:25:53 +01:00
shortcutme 4586d3be78
Send my local time as int in the handshake 2018-03-14 22:25:27 +01:00
shortcutme 2204e0cf9c
Fix message parsing after data left in unpacker 2018-03-14 22:24:38 +01:00
shortcutme 8787774764
Use implicit ssl for connections 2018-03-14 22:24:06 +01:00
shortcutme 511731f0b4
Add current timestamp to handshake for future time consensus feature 2018-03-10 02:04:14 +01:00
shortcutme bca5d8a6c5
Use msgpack pip package everywhere 2018-02-27 02:48:15 +01:00
shortcutme af57083afd
Handle ip change on onion connection correctly 2018-02-27 02:46:56 +01:00
shortcutme f10233a0a6
New msgpack compatible stream handling 2018-02-27 02:46:26 +01:00
shortcutme cd822156c9
Rev3328, Fix CLI siteDownload, siteAnnounce, siteNeedFile commands 2018-02-13 13:18:40 +01:00
shortcutme e85c5e3b36
Rev3327, Add compatbility with new msgpack version 2018-02-13 01:35:21 +01:00
shortcutme c39ff89fab
Read only what we need 2018-02-12 14:28:45 +01:00
shortcutme 3f19f64efd
Properly recover extra data from unpacker 2018-02-12 14:27:38 +01:00
shortcutme f9091ea951
Don't connect to myself 2018-02-08 18:01:48 +01:00
shortcutme 8b9d75d726
Don't mark passive local connections as not connectable 2018-02-08 18:01:34 +01:00
shortcutme 7e4a4459b4
Don't multiplex local connection 2018-02-08 17:59:27 +01:00
shortcutme 70fd33e587
Message from local peer does not means internet connection 2018-02-08 17:58:44 +01:00
shortcutme 6fb9c6ef05
Rev3234, Ignore unknown characters from connection logging 2018-01-30 18:59:26 +01:00
shortcutme ee30f78ab0
Fix logging utf8 chars in connections 2018-01-30 13:59:39 +01:00
shortcutme 566b689ca6
Don't connect to private ip addresses in tor always mode 2018-01-30 13:59:18 +01:00
shortcutme 4afb6b3d9c
Limit connections to 512 by default 2018-01-27 12:20:40 +01:00
shortcutme 18d3e8905e
Longer timeout for tor peers 2018-01-27 12:19:57 +01:00
shortcutme fd14a4ac80
Don't create connection to blacklisted peer 2018-01-27 12:19:37 +01:00
shortcutme 03c469ff3a
Formatting 2018-01-19 02:16:50 +01:00
shortcutme c122dc108a
Record received and sent requests 2018-01-19 02:16:33 +01:00
shortcutme 19c335e39a
Fix bytes sent stats 2017-10-13 01:22:16 +02:00
shortcutme d32303de57
Increase buffer size for file streaming 2017-10-13 01:21:45 +02:00
shortcutme de360a8585
Received and sent connection command statistics 2017-10-13 01:21:05 +02:00
shortcutme 24c1596048
Keep track last received command for connection 2017-10-13 01:19:34 +02:00
shortcutme 8b3ff6454f
Limit connections to 500, backlog to 100 2017-10-11 14:22:23 +02:00
shortcutme 52a468d9fd
Allow 10 second for reponse 2017-10-03 14:34:21 +02:00
shortcutme 2cf86642a2
Run connection cleanup every 15 seconds 2017-10-03 14:32:31 +02:00
shortcutme e76164c7a9
Change the posistion of handleStream function 2017-10-03 14:32:02 +02:00
shortcutme bf0d359116
Increase buffer size to 64k to better performance for big files 2017-10-03 14:31:39 +02:00
shortcutme 5f37bf3eef
Enable TCP_NODELAY if supported 2017-10-03 14:31:16 +02:00
shortcutme d8453384ab
Separate socket creation and connection to be able to cancel it 2017-10-03 14:30:19 +02:00
shortcutme f4cdc31788
Lock socket during sending data 2017-10-03 14:27:29 +02:00
shortcutme 4f729aa98f
Only use pure-python msgpack for socket streaming 2017-08-09 14:17:58 +02:00
shortcutme 71fbcee76c
Fix error on exiting when there is no stream_server started 2017-06-20 20:28:09 +02:00
shortcutme 15d8589069
Fix typo, less verbose socket logging 2017-06-19 16:18:37 +02:00
shortcutme 14cd9315c1
Don't try to send to closed socket 2017-06-19 16:18:20 +02:00
shortcutme f1786c2ee6
Handle unknown message type 2017-06-19 16:16:43 +02:00
shortcutme 7d9cb65ba1
Catch message type errors on connection parsing 2017-06-19 16:16:13 +02:00
shortcutme fae5d22e86
Rev2054, Outgoing socket binding support 2017-04-14 16:05:42 +02:00
shortcutme 10632c15ef
Fix target_onion on connection recovery 2017-04-10 12:19:23 +02:00
shortcutme c5c0df838f
Store requested onion address instead of site_lock 2017-04-09 12:02:24 +02:00
shortcutme 461f0a274a
Only count ping time if no waiting requests 2017-03-02 23:40:30 +01:00
shortcutme 06ddf26d09
Increase command timeout 2017-02-27 00:05:27 +01:00
shortcutme bad2a79f05
Reason for connection closing 2017-02-27 00:02:24 +01:00
shortcutme d57d82f439
Rev1913, Support local address other than 127.0.0.1 2017-02-16 20:56:07 +01:00
shortcutme 889c88c492 Close connection after 40 bad action 2017-01-05 02:25:16 +01:00
shortcutme 9a1735f37d Rev1791, Fix gevent 1.2 compatibility 2016-12-27 11:37:58 +01:00
shortcutme de5eb43da1 Warnings instead of errors 2016-11-07 23:48:34 +01:00
shortcutme 0774662689 Allow more connection backlog 2016-11-07 22:52:34 +01:00
shortcutme 6201612169 Store cpu time used by connection 2016-11-07 22:52:22 +01:00
shortcutme 31077eb346 Move uPnP port remove to fileserver 2016-10-02 14:22:01 +02:00
ZeroNet 906f6c65d9 Merge pull request #577 from sirMackk/upnp_update
Closes #466 - Close ports on exit + minor refactoring w/ tests
2016-10-01 13:24:48 +02:00
shortcutme a7de4aca91 Stop connection loop when closed 2016-09-14 10:54:08 +02:00
shortcutme 1c86a6c58a Close connection on crypt error 2016-09-14 10:53:47 +02:00
sirMackk bd5ebdb2de Integrates updated upnppunch with project; Makes project close ports using UPnP on exit. 2016-09-09 12:37:22 +02:00
ZeroNet 238cb25bb4 Small incoming connection optimization 2016-08-10 12:51:38 +02:00
HelloZeroNet e9af4a5f6b Cleanup not useful connections after 5 min 2016-04-25 02:24:05 +02:00
HelloZeroNet 75a5ab9441 Track used site per connection 2016-04-25 02:23:06 +02:00
HelloZeroNet 2a8355dba7 Formatting 2016-04-25 02:20:55 +02:00
HelloZeroNet 1beb4fc2cb Less sensitive internet checker 2016-04-09 19:31:26 +02:00
HelloZeroNet 2353eed64c Less sensitive offline checker 2016-03-23 13:05:13 +01:00
Erkan Yilmaz b5d74eec16 typo: definied -> defined 2016-03-21 09:43:53 +01:00
HelloZeroNet f3c8d5e541 Better internet outage detection based on last message from connections 2016-03-19 18:14:09 +01:00
HelloZeroNet ef699b2f91 Typo 2016-03-18 20:01:23 +01:00
HelloZeroNet 555c136143 Simple connection karma to avoid update flood 2016-03-12 23:09:26 +01:00
HelloZeroNet 1dbc33445f Rev903, FeedQuery command only available for ADMIN sites, Show bad files in sidebar, Log unknown messages, Add and check inner_path and site address on sign/verify, Better peer cleanup limit, Log site load times, Testcase for address and inner_path verification, Re-sign testsite with new fields, Fix unnecessary loading screen display when browsing sub-folder with index.html, Fix safari notification width 2016-02-18 11:22:21 +01:00
HelloZeroNet 44a68104fb Rev833, Fix gevent 1.0.2 compatibility, Allow 6 connection from same host within 1 minute 2016-01-05 20:18:17 +01:00
HelloZeroNet e9d2cdfd37 Version 0.3.5, Rev830, Full Tor mode support with hidden services, Onion stats in Sidebar, GeoDB download fix using Tor, Gray out disabled sites in Stats page, Tor hidden service status in stat page, Benchmark sha256, Skyts tracker out expodie in, 2 new tracker using ZeroNet protocol, Keep SSL cert option between restarts, SSL Certificate pinning support for connections, Site lock support for connections, Certificate pinned connections using implicit SSL, Flood protection whitelist support, Foreign keys support for DB layer, Not support for SQL query helper, 0 length file get bugfix, Pex onion address support, Faster port testing, Faster uPnP port opening, Need connections more often on owned sites, Delay ZeroHello startup message if port check or Tor manager not ready yet, Use lockfiles to avoid double start, Save original socket on proxy monkey patching to get ability to connect localhost directly, Handle atomic write errors, Broken gevent https workaround helper, Rsa crypt functions, Plugin to Bootstrap using ZeroNet protocol 2016-01-05 00:20:52 +01:00
HelloZeroNet 8fdc431b0b Rev445, Fix ConnectionServer peer_id handling, Faster startup by creating ssl certs on FileServer start, Per-site connection_server, Fix double Db opening, Test site downloading, Sign testsite properly, Test ConnectionServer, Test FileRequest 2015-09-24 22:08:08 +02:00
HelloZeroNet 8f63e4c421 Rev399, Urandom and Msgpack benchmark, Better random string generation, Never render page on OPTIONS request, Fix for Chrome browser socket hang on zeronet version update 2015-09-13 23:17:13 +02:00
HelloZeroNet 5c72030373 Rev396, Cleanup gevent event after connecting finished, Autofocus on notification input/button, Missing file size info error fix 2015-09-13 12:52:11 +02:00
HelloZeroNet d8edaeb6ac rev260, Detect and fallback peers with broken SSL, Non-interactive mode for siteCreate, Pure-python msgpack is default now to make memory usage more stable 2015-09-02 19:15:55 +02:00
HelloZeroNet b83d6ba2ff Version 0.3.2, rev351, Sidebar to display site infos an modify settings, Per-site upload/download bytes statistics, Deny different origin media requests, Allow 10sec to finish query modifications, Websocket display errors to client instead of disconnecting, Allow specify notification id to server-side messages, Track every command response time 2015-08-16 11:51:00 +02:00
HelloZeroNet 84e3f00aac rev338, Possible to use pure-python msgpack unpacker to save memory, Streaming file download hangup fix, Clone databases after 3 minute idle, Many site size limit related bugfixes, UiMedia served from same domain to allow ajax access, Don't allow to load resources from other domain, Site size increase ask dialog displayed again, Changed fixbutton to more Consolas-like Monaco font, Boost json files priority on download 2015-08-06 00:51:25 +02:00
HelloZeroNet d331eea384 rev324, Store and display peers last found time, Fix UiPassword plugin cleanup bug, Experimental option to use tempfiles when downloading, Experimental option to stream files out of msgpack context, FileRequest streamFile command, Cleanup peers if not found for 4 hours, Don't reopen openssl in every 5min, Peer fileGet benchmark option 2015-07-25 13:38:58 +02:00
HelloZeroNet b5ecb62bc6 rev280, The whole project reformatted to PEP8, UiRequest getPosted to query posted variables 2015-07-12 20:36:46 +02:00
HelloZeroNet dc791a31ab rev259, Protection against connection flood, Fix site size limit error dialog, Convert ConnectionServer and ContentManager to PEP8 format 2015-06-25 20:09:41 +02:00
HelloZeroNet 1f53212d62 rev246, Socket peek undhandler error fix 2015-06-19 12:26:56 +02:00
HelloZeroNet b2e2453e58 rev242, Implicit SSL support for the future, Exist typo fix 2015-06-17 00:49:46 +02:00
HelloZeroNet a78907cc9d Version 0.3.1, rev238, Connection encryption using TLS, One click site clone feature, Encryption stats, Disable encryption startup parameter, Disable ssl compression startup parameter, Exchange supported encryption methods at handshake, Alternative open port checker, Option to store site privatekey in users.json, Torrent tracker swap, Test for bip32 based site creation, cloning and sslcert creation, Fix for Chrome plugin on OSX, Separate siteSign websocket command, Update pybitcointools to major speedup, Re-add sslwrap for python 0.2.9+, Disable SSL compression to save memory and better performance 2015-06-10 00:29:30 +02:00
HelloZeroNet e08b153732 rev193, Msgpack 0.3.x not supported, Dont display pyfilesystem error 2015-05-25 22:48:35 +02:00
HelloZeroNet 7e4f6bd38e version 0.3.0, rev187, Trusted authorization sites support, --publish option on signing, cryptSign command line option, OpenSSL enabled on OSX, Crypto verify allows list of valid addresses, Option for version 2 json DB tables, DbCursor SELECT parameters bugfix, Add peer to site on ListModified, Download blind includes when new site added, Publish command better messages, Multi-threaded announce, New http Torrent trackers, Wait for dbschema.json on query, Handle json import errors, More compact writeJson storage command, Testcase for signing and verifying, Workaround to make non target=_top links work, More clean UiWebsocket command route, Send cert_user_id on siteinfo, Notify other local clients on local file modify, Option to wait for file download before sql query, File rules websocket API command, Cert add and select, set websocket API command, Put focus on innerframe, innerloaded wrapper api command to add hashtag, Allow more file error on big sites, Keep worker running after stuked on done task, New more stable openSSL layer that works on OSX, Noparallel parameter bugfix, RateLimit allowed again interval bugfix, Updater skips non-writeable files, Try to close openssl dll before update 2015-05-25 01:26:33 +02:00
HelloZeroNet eddf3eb8fc rev134, Removed ZeroMQ dependency and support, GC after every stat page, GC call stat command, Streaming files directly to socket without msgpack overhead, Use listModified to query changed content.json files, Fix urllib memory leak onolder pythons, Fix security tests, Sitemanager testsuite, Announce on site resume, Site publish serves files max 60s 2015-05-03 13:06:43 +02:00