53 Commits

Author SHA1 Message Date
Riccardo Magliocchetti 4998a10578 subscription: fix memory leak
Reported by CID as #1264346
2015-01-14 15:32:48 +01:00
Unbit c9c1ff676f ported 2.0.9 improvements 2014-11-14 15:43:47 +01:00
Unbit d04f15285a added fallback for mountpoint mode 2014-07-12 11:19:30 +02:00
Unbit 6cf62fb0d2 added iphash subscription algo 2014-07-12 10:12:17 +02:00
Unbit eb4ee8226a added backup_level to lrc algos 2014-07-12 09:20:10 +02:00
Unbit baec7aadc5 added backup support to wrr algo 2014-07-12 09:12:54 +02:00
Unbit d121b23fd4 fixed per-subscription protocol support 2014-07-12 08:48:29 +02:00
Unbit 736be4b3c5 report the used algo in realtime 2014-07-11 12:04:51 +02:00
Unbit 90b6512d52 pluggable subscription algos 2014-07-11 11:46:23 +02:00
Roberto De Ioris 9b35215edc fixed a memory leak with subscriptions 2014-06-06 04:21:11 +02:00
Unbit a51a396f47 fixed #581 2014-04-01 12:04:31 +02:00
Unbit 16aec7c44b fixed sni subscriptions 2014-02-04 14:52:00 +01:00
Unbit 2092050f00 allow building without ssl 2014-02-02 18:54:49 +01:00
Roberto De Ioris 1646f9c199 fixed notifications 2014-01-13 12:36:08 +01:00
Unbit a15de85811 another refactoring of subscription subsystem 2014-01-12 09:22:10 +01:00
Unbit 4b09ead07d refactored recured subscription system 2014-01-12 09:04:57 +01:00
Unbit 338aca9da5 fixed subscription uid check 2014-01-12 08:17:52 +01:00
Unbit 3f0b9390d9 added subscriptions-sign-skip-uid 2014-01-12 08:01:21 +01:00
Unbit 2ea67c67df notify subscriptions 2014-01-09 13:13:20 +01:00
Unbit 8eebc9f400 allows passing notify object to subscription packets 2014-01-09 12:59:36 +01:00
Unbit 2ad6a1c8e8 prepare for notification socket 2014-01-09 12:43:28 +01:00
Unbit aaee226183 fix sni subscription 2014-01-08 06:53:09 +01:00
Unbit f18ceea9bf fixed resubscription when different sockets type are in place 2014-01-04 10:12:03 +01:00
Unbit 18972d95a8 improved subscription system 2014-01-03 17:22:23 +01:00
Riccardo Magliocchetti 1149e60125 core/subscription: fix memory leak
Reported by Coverity as CID #971040.
2013-12-27 19:06:12 +01:00
Unbit 1efb3f4096 expose uid gid and pid in subscription nodes 2013-12-24 17:43:54 +01:00
Unbit 77c279b3a9 added rx and tx to subscription nodes 2013-12-18 07:31:53 +01:00
Unbit 0e539f25cd removed additional debug 2013-12-16 19:20:54 +01:00
Unbit 33a6195e44 improvements in SCM_CREDENTIALS subscription system 2013-12-15 06:31:33 +01:00
Unbit 0b27d41712 fixed corerouter servername for sni 2013-12-14 18:00:23 +01:00
Unbit 2124b930fd subscription system can now create sni contexts 2013-12-14 17:54:19 +01:00
Łukasz Mierzwa 6bd0095513 fixed block check in subscriptions 2013-12-11 20:21:09 +01:00
Unbit 27c3532617 added S master fifo command 2013-11-28 11:36:28 +01:00
Riccardo Magliocchetti eae00a5c77 core/subscription: fix wrong check in uwsgi_subscribe2
It looks like both s2_server and s2_key are mandatory in
uwsgi_send_subscription so fail if any of them is missing not both.

Reported by coverity as CID #989245.
2013-03-03 18:56:46 +01:00
Unbit 9610ec72ab openindiana fixes 2013-02-15 22:24:35 +01:00
Łukasz Mierzwa 3761709ec4 add last_request attribute to subscription node, it will hold the number of requests since last subscription ping
use node->last_requests instead of absolute request counter in (w)lrc
2013-01-30 18:32:06 +01:00
Roberto De Ioris 78a05ef9e8 use size_t instead of int in io functions 2013-01-12 19:22:51 +01:00
C Anthony Risinger db24fa7bd4 defect/sec-sub: Incorrect offset + length used for pkt encryption
Off-by-four bug included the (uninitialized) uwsgi protocol header as part of
the signed packet during encryption, but *not* decryption, effectively preventing successful subscriptions; omit the header from both sides.
2013-01-07 06:24:39 -06:00
Roberto De Ioris 5bfad8a1c5 added check key to the subscribe2 new generation subscriber 2013-01-01 09:56:19 +01:00
Roberto De Ioris c0dcbb7bac refactored subscriptions 2012-12-31 13:00:05 +01:00
Roberto De Ioris 808216fbd2 rewritten subscription packet generation uwsgi uwsgi_buffer struct 2012-12-31 11:40:06 +01:00
Roberto De Ioris ceebaa7d9d fixed indentation 2012-11-09 12:16:39 +01:00
Łukasz Mierzwa 86ea390ba8 weighted least reference count (wlrc) load balancing algorithm 2012-10-06 12:27:56 +02:00
Łukasz Mierzwa c9f0786edd with this patch lrc acts more like rr algorithm when request rate is very low. Side effect is that when one adds new node to long running cluster, then lrc will try to catch new node request count up to other nodes value, but since it will only happen during low request rate, than I don't consider it as an issue 2012-10-04 10:31:47 +02:00
roberto@quantal64 a9703f8533 another fix for lrc 2012-10-03 08:51:36 +02:00
roberto@quantal64 8a0fa1ffc4 fixed lrc algo 2012-10-03 07:02:32 +02:00
roberto@quantal64 4ca422a0a8 added --subscription-dotsplit 2012-10-03 06:56:37 +02:00
roberto@quantal64 a979abf0c6 added multiple algorithms support for subscription load balancing 2012-10-02 17:08:40 +02:00
roberto@quantal64 c664ac21bb added uwsgi pluggable clock infrastructure 2012-08-25 16:54:49 +02:00
roberto@quantal64 1a330e49f6 fixed reference counting in wrr 2012-08-20 20:37:02 +02:00