Issue 9 in stacklessexamples: receive bug in stacklesssocket30.py

0 views
Skip to first unread message

stackles...@googlecode.com

unread,
Jun 23, 2011, 3:10:26 PM6/23/11
to stackless-exa...@googlegroups.com
Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 9 by sebastia...@googlemail.com: receive bug in
stacklesssocket30.py
http://code.google.com/p/stacklessexamples/issues/detail?id=9

The bug is in stacklesssocket30.py.

What steps will reproduce the problem?
1. Try receiving data on a socket using the recv_into() function.
2.
3.

What is the expected output? What do you see instead?
It will fail like this:
File "stacklesssocket.py", line 249, in recv
self.recv_into(b, byteCount, flags)
File "/stacklesssocket.py", line 303, in recv_into
buffer[:] = self.readBytes
TypeError: an integer is required


What version of the product are you using? On what operating system?
I use the latest version of the stacklesssocket30.py module from the trunk.

Please provide any additional information below.

Fix:
The problem is the statement at line 283.
It says:
"self.readBytes = self.recvChannel.receive()"
but should actually say:
"self.readBytes, address = self.recvChannel.receive()"


Reply all
Reply to author
Forward
0 new messages