Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [paho-dev] Maximum number of inflight messages exceeded

there are a couple of ideas that have been discussed and interested in what you think:
1) to make it easier to set to the max inflight messages
2) to provide a proper offline buffering capability.  The current inflight messages feature only works when the client is connected.  The buffer mode would allow a configurable number of messages to be sent while the client is not connected

All the best


From:        Marc L Cohen <mlcohen@xxxxxxxxxx>
To:        "General development discussions for paho project" <paho-dev@xxxxxxxxxxx>
Date:        24/11/2013 01:08
Subject:        Re: [paho-dev] Maximum number of inflight messages exceeded
Sent by:        paho-dev-bounces@xxxxxxxxxxx

Are there any thoughts about making that number flexible or settable by the programmer?

Marc L Cohen

Sent from my iPad

On Nov 23, 2013, at 5:21 AM, "Ian Craggs" <icraggs@xxxxxxxxxxxxxxxxxxxxxxx> wrote:

> Hi Tito,
> in the Java client, there is an internal setting of 10 QoS 1 or 2
> messages that can be "in-flight" (unfinished protocol exchanges) at one
> time.  It is a temporary condition that will be resolved once the
> sending of at least one message has been completed.
> So the application should try again in a short period of time. If you
> are using the async API, you could wait until a callback is made telling
> you that the next message has been sent.
> It does not apply to QoS 0 messages as there are no ACKs nor message ids
> in that case.
> Ian
> On 23/11/13 00:33, Tito Cheriachan wrote:
> > Hi all,
> >
> > I am using the paho mqtt java client and I was sending out a lot of messages every second , but the mqtt connection was not established , then I encountered an exception like maximum number of in flight messages exceeded.
> >
> > 1. Does this happen if the mqtt is not able to push out messages to the broker ?
> >
> > 2.will it happen on all qos levels ?
> >
> > 3.On what all scenarios will this occur.
> > _______________________________________________
> > paho-dev mailing list
> > paho-dev@xxxxxxxxxxx
> >
> _______________________________________________
> paho-dev mailing list
> paho-dev@xxxxxxxxxxx
paho-dev mailing list

Unless stated otherwise above:
IBM United Kingdom Limited - Registered in England and Wales with number 741598.
Registered office: PO Box 41, North Harbour, Portsmouth, Hampshire PO6 3AU

Back to the top