468,321 Members | 1,679 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

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

[Twisted-Python] Problem with Echoserver (TCP), Help!

Hi, I am new to Twisted. I use a Twisted 1.3.0 on MS Windows XP Home
Edition, my python version is 2.3

I try the TCP echoserv.py and echoclient.py example. But the client
always fail with following message:

Unhandled error in Deferred:
Traceback (most recent call last):
File "D:\PYTHON23\Lib\site-packages\twisted\internet\default.py", line
134, in
mainLoop
self.runUntilCurrent()
File "D:\PYTHON23\Lib\site-packages\twisted\internet\base.py", line
423, in ru
nUntilCurrent
call.func(*call.args, **call.kw)
File "D:\PYTHON23\Lib\site-packages\twisted\internet\tcp.py", line
384, in res
olveAddress
d.addCallbacks(self._setRealAddress, self.failIfNotConnected)
File "D:\PYTHON23\Lib\site-packages\twisted\internet\defer.py", line
205, in a
ddCallbacks
self._runCallbacks()
--- <exception caught here> ---
File "D:\PYTHON23\Lib\site-packages\twisted\internet\defer.py", line
338, in _
runCallbacks
self.result = callback(self.result, *args, **kw)
File "D:\PYTHON23\Lib\site-packages\twisted\internet\tcp.py", line
388, in _se
tRealAddress
self.doConnect()
File "D:\PYTHON23\Lib\site-packages\twisted\internet\tcp.py", line
403, in doConnect
r, w, e = select.select([], [], [self.fileno()], 0.0)
select.error: (10022, '')
What is the matter? Thanks.

-SeSe
Jul 18 '05 #1
2 2186
Hi,

My experience with Twisted is also limited but let me try to help you.
I tried the same combo as you and it worked well with the following
responses:
receive: Hello, world!
receive: What a fine day it is.
receive: Bye-bye!
connection lost: Connection was closed cleanly.

I am sure you started the server before the client.

Do you have some firewall software installed that prevents the client
from connecting to the server?

Thanks
--Kartic

Jul 18 '05 #2
Thanks. I have disabled my firewall. But still failed.

It is a bit strange that echo server UDP works. Only TCP doesn't.

Regards,
SeSe
Kartic wrote:
Hi,

My experience with Twisted is also limited but let me try to help you.
I tried the same combo as you and it worked well with the following
responses:
receive: Hello, world!
receive: What a fine day it is.
receive: Bye-bye!
connection lost: Connection was closed cleanly.

I am sure you started the server before the client.

Do you have some firewall software installed that prevents the client
from connecting to the server?

Thanks
--Kartic

Jul 18 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by John Benson | last post: by
reply views Thread by Guyon Morée | last post: by
11 posts views Thread by mir nazim | last post: by
3 posts views Thread by flupke | last post: by
reply views Thread by Thomas Guettler | last post: by
4 posts views Thread by rzimerman | last post: by
2 posts views Thread by Matthew Warren | last post: by
1 post views Thread by sndive | last post: by
reply views Thread by Stodge | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.