Commit Graph
612 Commits
Author SHA1 Message Date
andsel 9df60774a7 Fixed failing tests 2018-11-22 22:16:44 +01:00
andsel c4d928bbd7 Added QueueRepository implemented in memory and on H2 2018-11-22 21:51:16 +01:00
andsel 1141e9f7a1 Fixed failing tests after moving to H2 as default store 2018-11-18 10:58:25 +01:00
andsel cfa478067e Removed unused persistence classes 2018-11-14 22:13:42 +01:00
andsel a36d926460 Implemented H2 based SubscriptionsRepository 2018-11-13 22:50:02 +01:00
andsel 1ba9eb3613 Moved packages from old io.moquette.server to new io.moquette.broker 2018-11-11 18:06:13 +01:00
andsel 58fd90d33d Avoid multiple calls to initialize of AutoFlushHadler and extracted common config part MQTT pipeline 2018-11-11 17:27:33 +01:00
andsel 284417ef50 Minor, fixed checkstyle and find bugs warns 2018-11-10 18:31:51 +01:00
andsel 9ceb26307e Fixed leaks 2018-11-10 17:28:54 +01:00
andsel 11bb0c6fa1 Minor, fixed code style 2018-11-10 14:37:14 +01:00
andsel dd8bad7480 Minor changes 2018-11-08 22:28:29 +01:00
andsel e10619813a Removed all the old ProtocolProcessor stuff 2018-11-08 22:18:11 +01:00
andsel 24e9d9f83c Added keepalive management to MQTTConnection 2018-11-08 22:15:46 +01:00
andsel 5efbe8e8bf Ported the config for SSL and websocket into new broker 2018-11-02 17:21:35 +01:00
andsel 176b986c47 Introduced interceptors notification into new broker 2018-11-02 16:49:50 +01:00
andsel a2266e5bbe Rearchitected the broker, switching from ProtocolProcessor and publisher to MQTTConnection, Session and PostOffice 2018-11-02 12:33:59 +01:00
Ricardo JL Rufino 0f3b3f9ee6 Update MQTTMessageLogger.java
reduce the level of logging to less significant things
2018-08-09 23:42:01 -03:00
andsel ba8ad02289 Dropper Hazelcast because Moquette is not designed to be clusterizable
Separated the connect/disconnect logic into ConnectHandler/DisconnectHandler

Moved the sending of CONN ACK after session creation/update

Moved the will message management inside the session class
2018-07-20 18:19:10 +02:00
Andrea Selva baecbbcb31 Merge pull request #422 from jcroig/master
Adds client remote address getter to ConnectionDescriptor class.
2018-07-19 17:32:29 +02:00
Andrea Selva 6bba40ff1c Merge pull request #421 from hylkevds/shutdownFix
Fixed executor not shutting down.
2018-07-19 17:29:15 +02:00
andsel 8a03dd8131 Fixed issue #415 by adding a configuration flag to force subscription re-authentication on client connect 2018-07-19 17:23:18 +02:00
Juan Carlos Roig 5afc874eed Adds client remote address getter to ConnectionDescriptor class. 2018-07-09 12:20:45 +02:00
Hylke van der Schaaf add5e8968e Fixed executor not shutting down. 2018-07-07 13:47:35 +02:00
andsel 5e4c70edce Fixed issue #412 adding a check on Topic's string length in processPublish 2018-06-28 23:26:56 +02:00
sbouchex ce018fe6a0 Fixed NPE while logging an unknown packet (Replaced with an IOException) 2018-06-28 14:13:52 +02:00
andsel 88e0ccf20e On retained republish message adapt the QoS to the one specified during subscription (fix issue #411) 2018-06-28 00:26:42 +02:00
andsel ea0ad14374 Fixed issue #410 reserved flag set in unsubscribe 2018-06-26 15:00:36 +02:00
Maik Scheibler d50a291366 enable the usage of Netty OpenSSL provider implementation
Signed-off-by: Maik Scheibler <[email protected]>
2018-06-22 12:48:06 +02:00
andsel 08d3e8d278 New dev cycle for 0.12 2018-05-17 23:43:33 +02:00
andsel 0186de26c2 Bumped and released version 0.11 2018-05-16 23:22:24 +02:00
andsel 3c9cc5fa8e Fixed issue #380, now catch and print the full stack trace on error 2018-05-07 20:26:40 +02:00
andsel 34a2aca45e Minor, updated copyright date 2018-04-27 20:17:47 +02:00
andsel 6bbeba1612 Moved avay from ConnectionDescriptorStore unused methods and stuff that hasn't nothing about ConnectionDescriptor storing 2018-04-27 20:16:11 +02:00
andsel 99f0612209 Minor, fixed logging level to be more usefull for distribution 2018-04-27 15:56:26 +02:00
andsel 513d4d7996 Fixed #339, sets TCP_NODELAY options on the accepted child socket and not on the accepting 2018-04-27 14:27:58 +02:00
andsel cf5d619d34 Minor, just improved readability 2018-04-27 13:48:53 +02:00
andsel fc59b51558 Fix #381, avoid t print password on bad signin during connect 2018-04-27 13:08:12 +02:00
andsel 5456431dd4 Fixed bug #400 a transient session (clean=true) that tried to lookup session from persistent store 2018-04-27 12:44:48 +02:00
andsel 08949370e6 Minor added slf4j-api deps to re-enable logging 2018-04-27 12:43:11 +02:00
andsel 033a428184 Fixed checkStyle and ErrorProne warns 2018-04-26 22:23:06 +02:00
Mick b780b71e5e Fixed issues #375, #312 2018-02-09 09:55:29 +01:00
Marcus Williford 1bc6bdbbce Fix for CTrie TNode exception and other improvements to CTrie related
subscribe and unsubscribe issues

-  Added unit tests to cover a few more cases which I my system ran into
   under concurrent load testing.
-  Remove and detect TNode, implement more of
   http://bravenewgeek.com/breaking-and-entering-lose-the-lock-while-embracing-concurrency/
   related to TNode state
-  NOTE:  The graph is left with nodes which have no subscriptions, the
   TNode cleanup only cleanss the last node for now.  We should
   autoprune further up by placing more TNodes and pruning them off.
-  Adding concurrency Sets and Lists to CNode, because those ARE edited
   and read in parallel in our use-case.  Before a CNode is CAS
   replaced, more than 1 thread may be attempting to modify and read the
   subscriptions and children CNode datastructures, and I hit this
   during testing.
-  Fixed an issue where we unsubscribe all sub-topics if an unsubscribe
   is sent on a parent node.
-  Fixed an issue with unsubscribing multiple times when no subscrition
   exists, we should handle this gracefully.
2017-10-24 09:45:12 -07:00
andsel 3293478dd7 Fixed issue #362 2017-10-20 12:27:50 +02:00
andsel ba2b8b44d3 Fixed issue #360, used a DB connection pool instead of long lasting Drivers connections 2017-10-20 12:25:10 +02:00
andsel f7b213a677 Added tracking of closed session time and expired session cleaner for clients that never reconnects but had clean session flag = false 2017-10-20 11:48:34 +02:00
andsel 1b272e5849 Big refactory on session management:
- introduced a unique point of access and management of sessions state (SessionRepository)
- separated behaiour for sessions with clean flag to false into DurableSession
- separated behaviour for session with clean flag to true into TransientSession
2017-10-14 17:37:26 +02:00
Andrea Selva ed87abaaaa Merge pull request #340 from nMoncho/ACL_COMMENTS
#310 - Allow for topic/patterns with '#' and end of line comments
2017-08-23 10:02:29 +02:00
Gustavo De Micheli 89174178c6 #310 - Allow for topic/patterns with '#' and end of line comments 2017-08-23 09:43:51 +02:00
Andrea Selva d6aca1d2a1 Merge pull request #342 from hylkevds/master
Terminate processor on shutdown.
2017-08-19 14:36:46 +02:00
Dolychuck a62f0aa6f3 Fix issue #171 2017-08-05 12:05:45 -07:00