Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [mosquitto-dev] auth_plugin_unpwd_check() may delays mosquitto broker.

Hello,

You're quite right to highlight this issue, I'd agree that a thread pool approach would be attractive, but I'm afraid that threads are out of scope at the moment. I'll have a think about how this could be implemented.

I would suggest that for the moment you investigate caching of results in your plugin to minimise the problem. I believe JP Mens' mosquitto-auth-plugin implements this approach.

I've submitted a bug report to keep track of this issue:

https://bugs.eclipse.org/bugs/show_bug.cgi?id=472050

Cheers,

Roger


On Thu, Jul 2, 2015 at 12:20 PM, 변동호 <cpascal@xxxxxxxxx> wrote:

Hello,

 

  I'm sorry I'm not good in writing in English.

 

  If I use network-based auth-plugin like https://github.com/jpmens/mosquitto-auth-plug, the authentication needs some time to be completed.

If many auth-request is at a time, the performance of mosquitto be terrible because mosquitto is single-threaded and auth-plugin is in sync-mode.

 

  Is there any good implemented solution?

 

Many thanks in advance. 

 

P.S.

  I think the problem can be solved by the followings:

  - if auth-logic also be polling or event-driven? (or with auth-thread-pool?)

  - if MQTT proxy(or bridge) do the auth instead of broker? (but needs many proxies?)


_______________________________________________
mosquitto-dev mailing list
mosquitto-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/mosquitto-dev


Back to the top