Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [paho-dev] Bug : PublishMessage (Ian Craggs)

  Hi paho team,
  My configurations :
  1- Keepaliveinterval=20
  2- Timeout = 20000 msec

2016-06-21 19:00 GMT+03:00 <paho-dev-request@xxxxxxxxxxx>:
Send paho-dev mailing list submissions to
        paho-dev@xxxxxxxxxxx

To subscribe or unsubscribe via the World Wide Web, visit
        https://dev.eclipse.org/mailman/listinfo/paho-dev
or, via email, send a message with subject or body 'help' to
        paho-dev-request@xxxxxxxxxxx

You can reach the person managing the list at
        paho-dev-owner@xxxxxxxxxxx

When replying, please edit your Subject line so it is more specific
than "Re: Contents of paho-dev digest..."


Today's Topics:

   1. Is test_mqtt4async hanging? (Guilherme Maciel Ferreira)
   2. Re: Is test_mqtt4async hanging? (Ian Craggs)
   3. Re: Is test_mqtt4async hanging? (Ian Craggs)
   4. Re: Bug : PublishMessage (Ian Craggs)


----------------------------------------------------------------------

Message: 1
Date: Mon, 20 Jun 2016 12:19:00 -0500
From: Guilherme Maciel Ferreira <guilherme.maciel.ferreira@xxxxxxxxx>
To: General development discussions for paho project
        <paho-dev@xxxxxxxxxxx>
Subject: [paho-dev] Is test_mqtt4async hanging?
Message-ID:
        <CAF=5bWdn4dg5AWtAmdx=yOFfuGmXthGEL_JaS5SAdh4KHAsSKg@xxxxxxxxxxxxxx>
Content-Type: text/plain; charset=UTF-8

Hi all,

Am I doing something wrong or the test_mqtt4async is hanging?

In the test2(), it succeeds subscribing to the "nosubscribe" topic
[https://github.com/eclipse/paho.mqtt.c/blob/develop/test/test_mqtt4async.c#L524].

I guess it should fail, calling the test2_onSubscribe2(). Which in
turn should call the test2_onDisconnect(). Then setting the
test_finished to 1
[https://github.com/eclipse/paho.mqtt.c/blob/develop/test/test_mqtt4async.c#L464].

However, the code loops forever testing the test_finished variable
[https://github.com/eclipse/paho.mqtt.c/blob/develop/test/test_mqtt4async.c#L576-L581].
Which never gets set to 1.

Best regards,
--
Guilherme Maciel Ferreira
Site: http://guilhermemacielferreira.com/


------------------------------

Message: 2
Date: Tue, 21 Jun 2016 10:27:30 +0100
From: Ian Craggs <icraggs@xxxxxxxxxxxxxxxxxxxxxxx>
To: paho-dev@xxxxxxxxxxx
Subject: Re: [paho-dev] Is test_mqtt4async hanging?
Message-ID: <57690882.8040702@xxxxxxxxxxxxxxxxxxxxxxx>
Content-Type: text/plain; charset=windows-1252; format=flowed

Hi,

it's quite possible.  I've been concentrating on the tests which are run
routinely in the build.  I'll take a look.

Ian

On 06/20/2016 06:19 PM, Guilherme Maciel Ferreira wrote:
> Hi all,
>
> Am I doing something wrong or the test_mqtt4async is hanging?
>
> In the test2(), it succeeds subscribing to the "nosubscribe" topic
> [https://github.com/eclipse/paho.mqtt.c/blob/develop/test/test_mqtt4async.c#L524].
>
> I guess it should fail, calling the test2_onSubscribe2(). Which in
> turn should call the test2_onDisconnect(). Then setting the
> test_finished to 1
> [https://github.com/eclipse/paho.mqtt.c/blob/develop/test/test_mqtt4async.c#L464].
>
> However, the code loops forever testing the test_finished variable
> [https://github.com/eclipse/paho.mqtt.c/blob/develop/test/test_mqtt4async.c#L576-L581].
> Which never gets set to 1.
>
> Best regards,

--
Ian Craggs
icraggs@xxxxxxxxxx                 IBM United Kingdom
Paho Project Lead; Committer on Mosquitto



------------------------------

Message: 3
Date: Tue, 21 Jun 2016 10:50:04 +0100
From: Ian Craggs <icraggs@xxxxxxxxxxxxxxxxxxxxxxx>
To: paho-dev@xxxxxxxxxxx
Subject: Re: [paho-dev] Is test_mqtt4async hanging?
Message-ID: <57690DCC.7020303@xxxxxxxxxxxxxxxxxxxxxxx>
Content-Type: text/plain; charset=windows-1252; format=flowed

Hi,

this test program relied on a broker configuration where subscribing to
a topic "nosubscribe" is not allowed, to test the 0x80 return code
introduced in MQTT 3.1.1.  I added it to the test directory to save it
for a time when I added these tests to the regular regression tests.

To do that I would need a reliable way of causing subscribe to fail.  I
could follow Roger's approach for that, or use the network proxy which
I've used in the automatic reconnect tests.

Ian

On 06/20/2016 06:19 PM, Guilherme Maciel Ferreira wrote:
> Hi all,
>
> Am I doing something wrong or the test_mqtt4async is hanging?
>
> In the test2(), it succeeds subscribing to the "nosubscribe" topic
> [https://github.com/eclipse/paho.mqtt.c/blob/develop/test/test_mqtt4async.c#L524].
>
> I guess it should fail, calling the test2_onSubscribe2(). Which in
> turn should call the test2_onDisconnect(). Then setting the
> test_finished to 1
> [https://github.com/eclipse/paho.mqtt.c/blob/develop/test/test_mqtt4async.c#L464].
>
> However, the code loops forever testing the test_finished variable
> [https://github.com/eclipse/paho.mqtt.c/blob/develop/test/test_mqtt4async.c#L576-L581].
> Which never gets set to 1.
>
> Best regards,

--
Ian Craggs
icraggs@xxxxxxxxxx                 IBM United Kingdom
Paho Project Lead; Committer on Mosquitto



------------------------------

Message: 4
Date: Tue, 21 Jun 2016 10:52:13 +0100
From: Ian Craggs <icraggs@xxxxxxxxxxxxxxxxxxxxxxx>
To: paho-dev@xxxxxxxxxxx
Subject: Re: [paho-dev] Bug : PublishMessage
Message-ID: <57690E4D.5060605@xxxxxxxxxxxxxxxxxxxxxxx>
Content-Type: text/plain; charset="utf-8"; Format="flowed"

Hi,

this could be related to your keepalive timeout setting.  What are you
using?

Ian

On 06/19/2016 03:27 PM, Rutkay B?y?k wrote:
>   Hi Mqtt team,
>   I'm stuck on somewhere in our mqtt project. I'm using your
> MqttClient library for my mqtt project. Here's the case:
>   I'm trying to get some knowledge from the master client side. For
> this purpose, i have to publish my mac address to a specific topic
> which is subscribed by master client. After i published successfully
> my mac address, master client send me new connection username and
> password for the highly secured broker. Then i connect the broker with
> new credentials. Now i try to publish something and at this time i
> plug off the ethernet cable. The code stuck on
> MQTTClient_publishMessage function and doesn't continue to next line.
> Connection lost call back can't be fired in this situation. How can i
> solve this problem?
>   Thank you,
>
>
> _______________________________________________
> paho-dev mailing list
> paho-dev@xxxxxxxxxxx
> To change your delivery options, retrieve your password, or unsubscribe from this list, visit
> https://dev.eclipse.org/mailman/listinfo/paho-dev

--
Ian Craggs
icraggs@xxxxxxxxxx                 IBM United Kingdom
Paho Project Lead; Committer on Mosquitto

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://dev.eclipse.org/mailman/private/paho-dev/attachments/20160621/905e36a7/attachment.html>

------------------------------

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

End of paho-dev Digest, Vol 54, Issue 14
****************************************


Back to the top