[Python-bugs-list] SimpleHTTPServer hangs browser? (PR#312)

aliberi@acutronic.com aliberi@acutronic.com
Thu, 4 May 2000 09:08:24 -0400 (EDT)

Full_Name: Armand Liberi
Version: 1.5.2
OS: LynxOS, Windows NT4SP6
Submission from: c196.acutronic.nauticom.net (

This reprot has also been sent to Sun.

Running SimpleHTTPServer on either LynxOS or Windows NT4SP6,

a.  Compile a java class named Test, such as:
import java.applet.*;
import java.awt.*;
import java.awt.event.*;

public class Test extends Applet {
	public void init() {

		Label label = new Label("Swing!");

		add(label, BorderLayout.CENTER);
b.  Create an HTML file that uses the above class:
<TITLE>JVM1.3 - Python SimpleHTTPServer Test</TITLE>
<OBJECT classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93"
	width="300" height="150" align="baseline"
<PARAM NAME="code" VALUE="Test.class">
<PARAM NAME="type" VALUE="application/x-java-applet;version=1.3">
<PARAM NAME="scriptable" VALUE="true">
	<EMBED type="application/x-java-applet;version=1.3" width="300"
		height="150" align="baseline" code="Test.class"
		No JDK 1.3 support for APPLET!!

c.  Install the HTML and class files into the Python HTTP web.

d.  Using Internet Explorer 5.01, address the HTML.  The HTML page will load and
the browser will hang.  Sometimes, it can be exited normally; most times, it
will require more drastic measures.

e.  Using Netscape Navigator 4.72, the browser will hang with the message "Host
.. contacted. Waiting for reply" in the status bar.  When "Reload" is clicked,
the applet will run.

f.  Java console displays:

Java(TM) Plug-in: Version 1.3.0rc2-Y
Using JRE version 1.3.0rc2 Java HotSpot(TM) Client VM
User home directory = C:\WINNT\Profiles\Armand
Proxy Configuration: no proxy

JAR cache enabled.