469,128 Members | 1,634 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,128 developers. It's quick & easy.

socket error

hi!

my application is throwing a bad socket error

raise error(EBADF, 'Bad file descriptor')
socket.error: (9, 'Bad file descriptor')

basically i have the following interchange
application service
<server1> <client1>
server1 client socket <-------------- client1
send address and data
client1.close
server2
client2 socket --------------> server2
use sent address to connect
client1 makes a connection to server1 and sends some data. server1 records
address of client1 and receives the data.
client1 then closes the connection.
the code then runs a server2 on the same address as client1.
and in the same code as server1, i run a client that connects to server2
this is where i get the error

Traceback (most recent call last):
File "app.py", line 146, in doStartServer
self.handler.evaluate(persona, policyURL, address, self.username,
MODELDIR,
self.frame)
File "C:\hons\prototype\um\proxyhandler.py", line 71, in evaluate
s.connect(address)
File "<string>", line 1, in connect
File "c:\Python23\lib\socket.py", line 143, in _dummy
raise error(EBADF, 'Bad file descriptor')
socket.error: (9, 'Bad file descriptor')

what am i doing wrong?

thanks


----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.
Jul 18 '05 #1
0 1574

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by Robert A. van Ginkel | last post: by
2 posts views Thread by Droopy | last post: by
2 posts views Thread by Rene Sørensen | last post: by
7 posts views Thread by | last post: by
10 posts views Thread by Hendrik van Rooyen | last post: by
2 posts views Thread by manasap | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by zhoujie | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.