[ejabberd] Timeout mechanism query

Daniel Dormont dan at greywallsoftware.com
Fri Nov 16 23:54:37 MSK 2012


When the wait timeout has been passed, and there's no data to send to
the client, the server will send a response. Why can't the client just
send the next request immediately, even if other activities are being
performed concurrently?

On Fri, Nov 16, 2012 at 5:31 AM, Anurag Srivastava <anurag.cs at gmail.com> wrote:
> I would like to update my question. Is there any way to send signal /message
> to server to keep alive the client without increasing max_inactivity
> duration.
>
> Regards,
> Anurag
>
>
> On Fri, Nov 16, 2012 at 8:51 AM, Anurag Srivastava <anurag.cs at gmail.com>
> wrote:
>>
>> Thanks Evgeniy,
>>
>> But my client is an application bot, which perform some another activities
>> and it take sometimes more than 60 seconds, due to which it got disconnected
>> from server. I am looking for method to solve this issue. Is it fair to send
>> blank message with some intervals say 45 seconds to make client live? please
>> suggest any other methods..
>>
>> Regards,
>> Anurag
>>
>>
>> On Fri, Nov 16, 2012 at 7:50 AM, Evgeniy Khramtsov <xramtsov at gmail.com>
>> wrote:
>>>
>>> On 16.11.2012 17:01, Anurag Srivastava wrote:
>>>>
>>>> Hello There,
>>>>
>>>> What is the mechanism for timeout is used in ejabberd? how i can make
>>>> sure that my agent not get disconnected with ejabberd server.
>>>>
>>>> I made this change in ejabberd.cfg file
>>>>  {mod_http_bind,[ {max_inactivity, 60} ]}
>>>>
>>>> But i want to make sure that my agent not got disconnected after 60
>>>> seconds.
>>>>
>>>
>>> Since max_wait can't be more than 60 seconds, you cannot make sure. The
>>> only solution is to make your clients posses 'wait' attribute less than 60
>>> seconds, I guess.
>>>
>>> --
>>> Regards,
>>> Evgeniy Khramtsov, ProcessOne.
>>> xmpp:xram at jabber.ru.
>>>
>>> _______________________________________________
>>> ejabberd mailing list
>>> ejabberd at jabber.ru
>>> http://lists.jabber.ru/mailman/listinfo/ejabberd
>>
>>
>>
>>
>> --
>> Anurag Srivastava
>
>
>
>
> --
> Anurag Srivastava
>
> _______________________________________________
> ejabberd mailing list
> ejabberd at jabber.ru
> http://lists.jabber.ru/mailman/listinfo/ejabberd
>


More information about the ejabberd mailing list