[Bug 225379] [NEW] Firefox does not close TCP connections for "multipart/x-mixed-replace" (e.g. motion JPEG) when closing page.

Gerard gerard.lommerse at gmail.com
Thu May 1 19:14:49 UTC 2008


Public bug reported:

Binary package hint: firefox-3.0

Firefox 3.0b5 (Ubuntu Hardy):

1) Ubuntu 8.04 (release 8.04)
2) 
firefox:
  Installed: 3.0~b5+nobinonly-0ubuntu3
  Candidate: 3.0~b5+nobinonly-0ubuntu3
  Version table:
 *** 3.0~b5+nobinonly-0ubuntu3 0
        500 http://nl.archive.ubuntu.com hardy/main Packages
        100 /var/lib/dpkg/status

ubufox:
  Installed: 0.5-0ubuntu1
  Candidate: 0.5-0ubuntu1
  Version table:
 *** 0.5-0ubuntu1 0
        500 http://nl.archive.ubuntu.com hardy/main Packages
        100 /var/lib/dpkg/status

3) I expect that the TCP connection (for streaming "multipart/x-mixed-
replace" content) is closed when navigating away from the page (go to
another URL or close the TAB page)

4) The TCP connection is not closed when navigating away from page (and
thus consumes unnecessary amount of bandwidth)

When closing pages with "multipart/x-mixed-replace" content (e.g. motion
JPEG used for AXIS network cameras), by either navigating away or
closing the corresponding TAB page the TCP connection is not closed
(remains 'ESTABLISHED') and server providing data (motion JPEG) keeps
pushing data (and firefox keeps accepting). This consumes an unnecessary
amount of bandwidth. Workaround is to close firefox altogether in order
to close TCP connections.

Fragment:

GET /axis-cgi/mjpg/video.cgi?camera=&resolution=352x240&1209661363365
HTTP/1.1

Host: itwebcam.mesastate.edu

User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9b5)
Gecko/2008041514 Firefox 2.0.11

Accept: image/png,image/*;q=0.8,*/*;q=0.5

Accept-Language: en-us,en;q=0.5

Accept-Encoding: gzip,deflate

Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7

Keep-Alive: 300

Connection: keep-alive

Referer: http://itwebcam.mesastate.edu/view/view.shtml


HTTP/1.0 200 OK

Connection: Close

Server: Camd

Content-Type: multipart/x-mixed-replace; boundary=--myboundary


--myboundary

Content-Type: image/jpeg

...

ProblemType: Bug
Architecture: i386
Date: Thu May  1 21:02:25 2008
DistroRelease: Ubuntu 8.04
NonfreeKernelModules: nvidia
Package: firefox-3.0 3.0~b5+nobinonly-0ubuntu3
PackageArchitecture: i386
ProcEnviron:
 PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SourcePackage: firefox-3.0
Uname: Linux 2.6.24-16-generic i686

** Affects: firefox-3.0 (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: apport-bug

-- 
Firefox does not close TCP connections for "multipart/x-mixed-replace" (e.g. motion JPEG) when closing page.
https://bugs.launchpad.net/bugs/225379
You received this bug notification because you are a member of Mozilla
Bugs, which is subscribed to firefox-3.0 in ubuntu.




More information about the Ubuntu-mozillateam-bugs mailing list