problems with SocketServer

Wester wester at
Tue Nov 7 18:50:26 CET 2000


I want to make my own little http-server. So I derived a class from
BaseHTTPServer.BaseHTTPRequestHandler and implemented do_GET and
do_POST. With the do_POST method everything works fine as long as the
content-length transmitted by the client is correct. I read the
transmitted data with:

    contentlength =
    data =

But when the data section contains less then contentlength bytes hangs obviously
waiting for more bytes. Is there any way out of this problem?



More information about the Python-list mailing list