Cyril Soler
248d0c42d3
Merge pull request #412 from csoler/v0.6-MaxUpRate
...
V0.6 max up rate
2016-06-11 17:58:08 -04:00
csoler
ef4455ac9c
cleaned the MaxUpRate branch from unused code
2016-06-11 17:54:11 -04:00
csoler
8e75185060
made avgReadCount and avgSendCound to be uint32_t instead of floats, since they count bytes. Changes kb to 1024 instead of 1000
2016-06-11 17:21:04 -04:00
csoler
373d41bc63
added missing variable def after previous commit
2016-06-11 14:11:21 -04:00
csoler
23e8e932be
added mutex proteciton around mAvgLastUpdate to avoid it being changed by the constructor
2016-06-11 09:50:22 -04:00
csoler
0d1d31a25f
added mutex protection around pqistreamer::getRates, since float r/w are not necessarily atomic
2016-06-11 09:33:16 -04:00
csoler
83a143476e
fixed bug in setting MaxRate values
2016-06-09 23:23:51 -04:00
csoler
f5ad8b49be
moved node-wide options to node details
2016-06-09 23:13:07 -04:00
csoler
a4931edee0
fixed setting/getting maxrates using pgp id
2016-06-09 20:51:09 -04:00
csoler
a07805be1d
moved bandwidth limits to the pgp level
2016-06-09 20:41:27 -04:00
csoler
38b86c37ab
improved debug output for early address rejection
2016-06-09 18:12:04 -04:00
csoler
6b78275677
fixed bug in loading config file to set max rates
2016-06-08 22:54:40 -04:00
csoler
5a0fa66ac0
added proper talking between pqihandler and GUI for maxrates fixing
2016-06-08 22:44:28 -04:00
csoler
509266a25b
removed some dead code
2016-06-07 22:38:24 -04:00
csoler
20b6745f70
added GUI and storage for max up/dn rates per peer
2016-06-07 21:48:22 -04:00
csoler
927f782bef
pass over compiler warnings
2016-06-05 10:43:57 -04:00
csoler
53eb4dfb12
fixed compilation errors due to last merge operation
2016-06-02 21:21:18 -04:00
csoler
e2b5785eec
merged PR403 with trunk
2016-06-02 21:15:51 -04:00
csoler
10e0254317
fixed a few things to correct PR403
2016-06-02 20:38:33 -04:00
Cyril Soler
2f4f44ee48
added early discarding of incoming connection attempt (before SSL handshake) for blacklisted IPs
2016-06-02 09:37:01 -04:00
sehraf
4f60c8cc9b
libretroshare: fix comparison between signed and unsigned integer
2016-06-02 14:54:23 +02:00
sehraf
8b788b2aa8
libretroshare: fix member initialisation order
2016-06-02 14:54:16 +02:00
sehraf
cfc0e7071a
libretroshare: remove unused variables
2016-06-02 14:54:07 +02:00
sehraf
bc23c2f7b9
add thread names for peers
2016-06-01 16:33:13 +02:00
sehraf
f16ee97093
add static thread names
2016-06-01 16:21:55 +02:00
Phenom
af5129c26d
Fix Mutex in pqipersongrp for pqilistener by adding local Mutex.
2016-05-18 19:15:37 +02:00
Cyril Soler
f3aed813af
added test over signature size to avoid possible memory corruption (Anonymous source)
2016-05-17 10:39:56 -04:00
Phenom
a1ece16f35
Fix uninitialized variables netsize, rsnetsize in p3netmgr.cc
2016-05-12 20:00:44 +02:00
Cyril Soler
e891e2be2e
added missing check for ssl_connection that would cause crash when the ssl connection gets closed by another thread
2016-05-11 10:00:20 -04:00
csoler
b5ace406b9
attempt to fix socket problem on 32bits/64bits windows, by using the proper SOCKET type instead of int
2016-05-05 21:40:29 -04:00
csoler
ca003c5f9e
added missing initialisation of deleted memory before calling realloc
2016-05-03 20:55:50 -04:00
csoler
aec8b4d27c
fixed bug in counting of incoming data size for sliced packets
2016-05-02 18:10:39 -04:00
csoler
01605e5a59
updated description f packet slicing in comments section of pqistreamer
2016-04-30 11:19:21 -04:00
csoler
1f7a94d49e
fixed bug causing crash in pqistreamer
2016-04-30 11:13:51 -04:00
csoler
4bdd464861
removed a few debug output and timer measurement
2016-04-29 18:53:25 -04:00
csoler
3bc3989e79
removed debug info for pqistreamer
2016-04-29 18:41:10 -04:00
csoler
654e0fc1d8
added missing call to SSL_pending, which caused decrypted data to wait in the SSL buffer when the bio is not receiving anything more
2016-04-29 17:53:21 -04:00
csoler
87764abe4c
removed debug info in pqistreamer
2016-04-26 21:23:19 -04:00
csoler
153db5ca64
added on/off mechanism for packet slicing to ensure packward compatibility
2016-04-26 09:22:24 -04:00
csoler
3b685851d2
improved/simplified slicing protocol
2016-04-25 23:37:02 -04:00
csoler
dd81ce3bf3
using BinToHex to display mem blocks in pqistreamer debug
2016-04-25 22:50:41 -04:00
csoler
18e9e1c2db
moerged with upstream/master
2016-04-24 21:29:55 -04:00
csoler
f62957534e
fixed a few bugs in packet slicing in pqiQoS
2016-04-24 21:18:44 -04:00
csoler
a2c11f97c2
added packet reconstruction and deserialising
2016-04-24 13:43:34 -04:00
csoler
cad8c89746
added packet slicing in pqistreamer
2016-04-23 17:10:25 -04:00
csoler
10230dff6e
added missing SSL shutdown when replacing existing connection
2016-04-22 16:50:43 -04:00
csoler
e82c217cd2
half-implemented packet slicing (QoS part done)
2016-04-20 22:42:09 -04:00
csoler
057249225e
severely reduced packet grouping, which limited the effectiveness of QoS
2016-04-20 21:20:47 -04:00
csoler
fc725b03a8
added some debug info to pqistreamer
2016-04-19 22:04:30 -04:00
csoler
26af7c900e
changed heart beat limit to a larger value. Apparently too tight a value causes disconnections due to packets being stuck sometimes (old bug)
2016-04-17 22:58:48 -04:00
Cyril Soler
a52bd98d4b
fixed potential div by 0 in speed estimations. To be tested.
2016-04-11 10:10:10 -04:00
csoler
a5044bd71c
improved calculation of speed in pqistreamer (was called before only when sending bytes), and prevented situation where no HB is received by the connection is not reset because last HB is 0, causing ghost connected peers in GUI
2016-04-09 14:48:05 -04:00
csoler
3554e48c7e
output packet error with some details (inspired by Phenom-PR289)
2016-04-03 11:38:53 -04:00
csoler
9d9b790a3e
exposed un-verified PGP signatures on GXS ids in GUI. Added auto-ban of GXS ids signed by a PGP ids that has already signed a large enough set of GXS ids. Still needs some GUI to change the threshold.
2016-04-02 16:14:18 -04:00
Phenom
c6f1cc4e63
Clear WebAPI when clear chat history in GUI.
...
Move notifyChatCleared call to p3ChatService
To maintain notify direction.
2016-03-31 22:52:53 +02:00
zeners
aca88308ea
compatible to g++11 / QT5
...
method suggested by cyril
2016-03-29 21:22:14 +02:00
csoler
bb260696ce
attempt at fixing negative bw rates in GUI that may pop up when an error is present in the SSL stream (e.g. when a peer disconnects/reconnects)
2016-03-02 19:00:51 -05:00
sehraf
dbdfdcd008
removed unused map lookups
2016-02-22 21:09:10 +01:00
sehraf
77166cbf13
impoved cleanup of unused locations
2016-02-22 16:41:31 +01:00
sehraf
4140969fcb
added seperated limit for discovery (30 days)
2016-02-19 16:35:11 +01:00
sehraf
841299d077
discovery: don't remove new added locations too soon
...
was: removed after 10 min. or less - when no connection is established
now: removed after 1 day - when no connection is established
2016-02-16 20:33:38 +01:00
Cyril Soler
3ab7c89660
Merge pull request #279 from cavebeat/single_dh_op
...
added openSSL option SSL_OP_SINGLE_DH_USE regarding CVE-2016-0701
2016-02-14 13:33:27 -05:00
cave beat
9843c8381b
added openSSL option SSL_OP_SINGLE_DH_USE regarding CVE-2016-0701
...
tl;dr The OpenSSL 1.0.2 releases suffer from a Key Recovery Attack on DH small subgroups. This issue got assigned CVE-2016-0701 with a severity of High and OpenSSL 1.0.2 users should upgrade to 1.0.2f. If an application is using DH configured with parameters based on primes that are not "safe" or not Lim-Lee (as the one in RFC 5114) and either Static DH ciphersuites are used or DHE ciphersuites with the default OpenSSL configuration (in particular SSL_OP_SINGLE_DH_USE is not set) then is vulnerable to this attack.
2016-02-14 18:49:37 +01:00
electron128
821c14426c
remove dead code from RsNotify (old forum and channel read status changed notify)
2016-02-14 12:48:52 +01:00
electron128
63a8260cb9
change RsNotify to use RsGxsId for chat lobby events
2016-02-14 11:53:27 +01:00
csoler
3bc444b087
removed some debug info
2016-01-26 23:00:10 -05:00
csoler
39b3df964a
fixed bug causing net reset when closing config
2016-01-25 22:39:20 -05:00
csoler
9b64b96811
fixed potential crash in pqisslstore
2016-01-23 13:04:02 -05:00
thunder2
748147f73b
Fixed Windows compile.
2016-01-15 21:41:23 +01:00
Cyril Soler
96f3446aa7
added size limit to packet grouping
2016-01-13 11:13:23 -05:00
Cyril Soler
b56881e6d9
fixed windows compilation
2016-01-13 10:23:21 -05:00
csoler
d55993d1e4
removed two instances of malloc(0) captured by new rs_malloc funtion
2016-01-12 21:43:04 -05:00
csoler
d13526facd
added a new method rs_malloc that checks its arguments and prints a stacktrace on error/weird call. Changed the code everywhere to use this instead of malloc. Removed some mallocs and replaced with RsTemporaryMemory
2016-01-12 21:10:11 -05:00
Cyril Soler
9fd0fc54cc
fixed bandwidth measurement in pqistreamer
2016-01-05 11:44:05 -05:00
Gio
ed7f958f95
Add stacktrave.h, sanitize p3LinkMgrIMPL::retryConnectTCP avoid to look for port on null sockaddr_storage
2015-12-31 15:42:22 +01:00
csoler
8a41554754
fixed some leaking memory issues in loadList() methods, and also increased consistency by not returning non empty list with deleted items inside
2015-12-30 18:20:09 -05:00
csoler
48750cdb51
merged
2015-12-30 17:18:22 -05:00
Cyril Soler
ae16fc887d
Merge pull request #229 from G10h4ck/master
...
Fix memory leak in getLocalAddresses
2015-12-30 17:13:27 -05:00
Gio
9c24203082
Fix memory leak in getLocalAddresses
2015-12-30 22:47:51 +01:00
csoler
cefa5d9f9e
fixed missing SSL_free when a new connection replaces the existing one
2015-12-30 13:55:15 -05:00
csoler
aabfcb975c
fixed missign initialisation of err in pqissludp.cc
2015-12-30 13:51:56 -05:00
csoler
682930938b
merged PR 219 from Jolavilette+Phenom, with some minor modifications
2015-12-29 23:40:09 -05:00
csoler
2fe646c5cb
merged PR 219 from Jolavilette+Phenom, with some minor modifications
2015-12-29 23:39:52 -05:00
Gio
3cfa22e35b
Guard checkNetAddress debug, unary + comment clarification
2015-12-29 23:51:16 +01:00
Phenom
4521e8ee95
Fix pqihandler::UpdateRates() to get more accurate.
2015-12-28 13:48:26 +01:00
Gio
436f619fcb
getLocalAddresses collects loopback address too
2015-12-21 17:34:53 +01:00
Gio
9d78bba3b8
Guard getLocalAddresses debug
2015-12-21 15:48:59 +01:00
Gio
ca1a9707ef
Removed dead code
2015-12-21 15:31:47 +01:00
Gio
1b2fa3600a
Adapted getLocalAddresses() includes for windows
2015-12-21 15:31:46 +01:00
Gio
5a541e7feb
Removed unused getLocalInterfaces_ipv4
2015-12-21 09:10:00 +01:00
Gioacchino Mazzurco
747a03a0b9
Substitute getpreferredinterface flawed logic with simpler getLocalAddresses still just one address used at moment
2015-12-21 09:10:00 +01:00
csoler
ea137adc42
fixed compilation on OSX pb in pqistreamer
2015-12-20 19:07:04 -05:00
Cyril Soler
d50875b9bb
Merge pull request #212 from csoler/v0.6-TrafficOptim
...
V0.6 traffic optim
2015-12-19 21:38:55 -05:00
csoler
141b799c9d
removed debug info
2015-12-19 21:20:25 -05:00
Cyril Soler
124da6f3b7
Merge pull request #210 from G10h4ck/pqicleaning
...
[RFC] Made pqiperson more readable evidence some strange code
2015-12-19 21:12:57 -05:00
Gio
b2c27a1fed
Made pqiperson more readable evidence some strange code
2015-12-19 22:10:07 +01:00
csoler
82d43eb8a0
fixed a few bugs in packet packing in pqistreamer.
2015-12-12 23:07:33 -05:00
csoler
f6a84aa4ad
added packet packing in pqistreamer. To be tested for improvement in bw
2015-12-12 11:52:48 -05:00
csoler
9193d3579b
merged with latest master before creating PR
2015-12-04 21:24:51 -05:00
csoler
81ab43beb9
fixed GUI update of avatars and status for distant chat. Updated backend for new model. Fixed a few bugs in serialisation
2015-11-30 00:02:44 -05:00