Dummy threads

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello,

I'm currently trying to port glasnost CMS on Apache2 and encounter
issues related to Dummy Threads

Here is my test.py file (I use it as a mod python handler):

--%<
#!/usr/bin/env python

import threading
from mod_python import apache

def handler(req):
    thread = threading.currentThread()
    r = req.the_request
    req.content_type = "text/plain"
    req.write("Bonjour!")
    req.write("\n")
    req.write(r)
    req.write("\n")
    req.write(repr(thread))
    return apache.OK

--%<

As you can see, it is a rather minimal handler.

At first it renders:

--%<
Bonjour!
GET / HTTP/1.1
<_MainThread(MainThread, started)>
--%<

but if I call any URL more than 3 or 4 times in a row, I get this on the
browser

-%<
Bonjour!
GET / HTTP/1.1
<_DummyThread(Dummy-1, started daemon)>
--%<

Can you help me figuring out why this dummy & annoying thing is happening?

Thanks in advance,

-- 
Odile Bénassy
http://www.ofset.org
http://gnuedu.ofset.org

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx


[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux