Hi Roy, The Python client used to be a ctypes wrapper for libmosquitto actually. It changed to a pure Python client in 1.0, but the wrapper is still there in the repository history if you want to investigate.
hg clone https://bitbucket.org/oojah/mosquitto cd mosquitto hg up -r v0.15 Then look in lib/python/ Cheers, Roger On Sat, Dec 7, 2013 at 6:19 AM, Roy Barkas <r...@rbdb.net> wrote: > Roger, > > Thanks for the useful info. > I'll let you know whether the error does not occur in the Paho client once > enough time has elapsed to make a definitive judgement > > Do you know if anyone has compiled either client using Cython? > It doesn't seem to me that the performance / overhead of the client is a big > concern but it would be nice to know for future reference. > > If I need to try to improve performance it would probably be better to write > a python wrapper for the C library than to Cythonise the pure python version > I'd guess.. > > Cheers; > Roy > > > On Sat, Dec 7, 2013 at 10:03 AM, Roger Light <ro...@atchoo.org> wrote: >> >> Hi Roy, >> >> Good to hear from you. >> >> The Paho client came directly from mosquitto.py, so there are really >> minimal differences. I have been doing development on the mosquitto >> side and then porting to Paho, but now that mosquitto is in the >> process of moving to eclipse, Paho will ultimately become the >> supported option. I'm going to do everything I can to try and make >> sure that it's a straightforward change for people. >> >> I'd be very interested to hear if you don't see the broken pipe >> problem in the Paho client because it would mean that some buggy >> changes have been introduced to mosquitto.py. I'm assuming that you >> were using an up to date version of course. >> >> Cheers, >> >> Roger >> >> On Fri, Dec 6, 2013 at 10:32 PM, Roy Barkas <r...@rbdb.net> wrote: >> > I've been using the Python client provided by the Mosquitto project in >> > production. >> > My environment is Linux and I'm processing ~ 12,000,000 messages per >> > day. >> > >> > I've been chasing some intermittent broken pipe (32) exceptions using >> > the >> > Mosquitto client without much luck, so I recently decided to swap in the >> > Paho Python client and see if the same errors occur. So far the broken >> > pipe >> > error has not recurred but it's early days - sometimes the error only >> > occurs >> > once in a few hours, sometimes more frequently. >> > >> > The Paho code seems to work well. >> > >> > Before I get too invested in changing to the Paho client... >> > >> > Are there any advantages / disadvantages for either of the clients? >> > >> > Are there any significant implementation differences? >> > >> > Are there any notable performance differences? So far I haven't seen >> > any >> > significant differences in CPU utilisation. >> > >> > Thanks; >> > >> > Roy Barkas >> > Australia >> > >> > -- >> > Mailing list: https://launchpad.net/~mosquitto-users >> > Post to : mosquitto-users@lists.launchpad.net >> > Unsubscribe : https://launchpad.net/~mosquitto-users >> > More help : https://help.launchpad.net/ListHelp >> > > > -- Mailing list: https://launchpad.net/~mosquitto-users Post to : mosquitto-users@lists.launchpad.net Unsubscribe : https://launchpad.net/~mosquitto-users More help : https://help.launchpad.net/ListHelp