Bug Tracker

Modify

Ticket #1479 (closed bug: worksforme)

Opened 6 years ago

Last modified 6 years ago

single $.get spawns a large number of requests

Reported by: Bryan Larsen Owned by:
Priority: major Milestone: 1.2.1
Component: ajax Version: 1.2
Keywords: Cc:
Blocking: Blocked by:

Description

browser: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.6) Gecko/20061201 Firefox/2.0.0.6 (Ubuntu-feisty)

jquery: 1.1.3.1 & Aug 9 nightly

server: Boa/0.94.14rc21 on uClinux

In the attached code, I've commented out code to $.get and replaced it with prototype's Ajax.Request, which fixes the problem for me.

The problem I see is that 5-10% of the time, watch_callback() spawns a large number of GETs of "/cgi-bin/watch_callback" instead of the single GET expected. These requests are visible in Firebug, but are not actually appearing on the wire.

"/cgi-bin/watch_callback" returns when the watched parameter has changed (either this user or another user clicking on the checkbox). It times out and returns a null string after 30 seconds. The behaviour is seen both for real and timeout returns.

The web server is quite slow: 150ms for a call to "/cgi-bin/set", for example. It's on a $6 CPU. :)

Attachments

gpio.tmpl Download (1.9 KB) - added by Bryan Larsen 6 years ago.
code exhibiting the problem

Change History

Changed 6 years ago by Bryan Larsen

code exhibiting the problem

comment:1 Changed 6 years ago by john

  • Component changed from core to ajax

comment:2 Changed 6 years ago by john

  • Status changed from new to closed
  • Version changed from 1.1.3 to 1.2
  • Resolution set to worksforme
  • Milestone changed from 1.1.4 to 1.2.1

I can't verify these results, let me know if you can provide an alternative (hosted) test page to look at this issue.

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.