InputStream from RemoteSocket.getInputStream functions differently to's

Bug #716393 reported by Andrew Wilkins on 2011-02-10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Andrew Wilkins

Bug Description

With an InputStream returned from, a call to[] buf, int offset, int length) may return less than the requested number of bytes. A RemoteSocket's InputStream will block until all "length" bytes are available.

Related branches

Andrew Wilkins (axwalk) wrote :

This is due to the use of socket.makefile, which acts like a Python file object, in that it does not return partial results. Rather than use socket.makefile, I'll have to create a new InputStream class which calls the socket.recv method.

Andrew Wilkins (axwalk) on 2011-02-10
Changed in pushy:
status: Confirmed → Fix Committed
Andrew Wilkins (axwalk) on 2011-03-05
Changed in pushy:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers