true. thanks.
but it works sometimes.
unfortunately i don't have a XHR object to use statechangeevent as i am using jsonp.
otherwise it would be easy to check.
Am 12.10.2010 um 21:22 schrieb Paul Davis:
> If you're hitting the same URL and it works for cURL but not in the
> browser, then I would assume that its the browser's XHR doing the
> timeout. Beyond that I don't have any knowledge on how you might
> affect the XHR timeout.
>
> On Tue, Oct 12, 2010 at 3:17 PM, Tom Bichay <bichay@gmx.net> wrote:
>> hey guys,
>>
>>
>> i am using jsonp (ajax) to connect to a couchdb server with the _changes api with
feed=longpoll.
>>
>> but unfortunately sometimes it misses some change notfications. i don't know why.
>> but i am 100% sure that there are relevant changes.
>> if i use curl it works perfect.
>>
>> has anybody an idea?
>>
>> i think it could be that the server cancels the connection, so it waits for the timeout
and returns the json without any changes. but i can not check if the server still has the
connection to the client as i am using jsonp (so i don't have a real object to use statechangeevent)
so i can not use heartbeat.
>>
>> is that possible?
>> is there any way to check if there is still a jsonp connection to the client?
>> or does anybody know if the _changes timeout gets invoked by the server or the client?
>>
>> please help.
>>
>> thanks.
>>
>> cheers
>> tom
--
BICHAY IT [bi:shay]
IT | Consulting | Development
Tom Bichay
Freelancer
Kammachergasse 2
89073 Ulm
0151 - 20669066
tom@bichay.de | bichay@gmx.net
www.bichay.de
|