ThreadingTCPServer not working 
Author Message
 ThreadingTCPServer not working

Hello!!

Does anyone know if something is wrong here, or I'm just doing
something stupid?

Python 2.1 (#1, May  8 2001, 16:26:24)
[GCC 2.95.3 20010315 (release) (conectiva)] on linux-i386
Type "copyright", "credits" or "license" for more information.

Quote:
>>> import SocketServer
>>> import BaseHTTPServer
>>> s = SocketServer.ThreadingTCPServer(("localhost", 8000),

BaseHTTPServer.BaseHTTPRequestHandler)

Quote:
>>> s.serve_forever()

Then, when trying to connect:

Exception in thread Thread-1:
Traceback (most recent call last):
  File "/var/tmp/python-2.1-root/usr/lib/python2.1/threading.py", line 378, in __bootstrap
    self.run()
  File "/var/tmp/python-2.1-root/usr/lib/python2.1/threading.py", line 366, in run  
    apply(self.__target, self.__args, self.__kwargs)
  File "/var/tmp/python-2.1-root/usr/lib/python2.1/SocketServer.py", line 246, in finish_request
    self.RequestHandlerClass(request, client_address, self)
  File "/var/tmp/python-2.1-root/usr/lib/python2.1/SocketServer.py", line 494, in __init__
    self.setup()
  File "/var/tmp/python-2.1-root/usr/lib/python2.1/SocketServer.py", line 537, in setup
    self.rfile = self.connection.makefile('rb', self.rbufsize)
error: (9, 'Bad file descriptor')

Thanks!!

--
Gustavo Niemeyer

[ 2AAC 7928 0FBF 0299 5EB5  60E2 2253 B29A 6664 3A0C ]



Wed, 19 Nov 2003 09:58:41 GMT  
 ThreadingTCPServer not working

Quote:

> >>> s = SocketServer.ThreadingTCPServer(("localhost", 8000),
> BaseHTTPServer.BaseHTTPRequestHandler)
> >>> s.serve_forever()
> [..]
> error: (9, 'Bad file descriptor')

http://sourceforge.net/tracker/index.php?func=detail&aid=417845&group...

Ciao, Michael.



Wed, 19 Nov 2003 15:18:15 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. ThreadingTCPServer

2. Does not work with TPS but works with DBF

3. 5.2 Network application works with 95, does not work with 98

4. Does the Autosave works in Excel , if not how to make it work in my program

5. Work library not same as current working library

6. REALdatabase not null and primary key not working

7. NOT Allow Inserts not working

8. Q: (IF WS-VAR NOT = SPACE) does not work in DBCS context

9. tcl/tk man pages use .HS, not .TH for title, so man -k does not work

10. Tooltip not working for all columns in a MultipleSelectionListView

11. ComboBox menu inside Container does not work?

12. German Umlauts does not work in symbols

 

 
Powered by phpBB® Forum Software