By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,036 Members | 1,963 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,036 IT Pros & Developers. It's quick & easy.

Bug in ssl-object library reference page or in ssl-object code?

P: n/a
According to

17.2.2 SSL Objects

SSL objects have the following methods.


If n is provided, read n bytes from the SSL connection,
otherwise read until EOF. The return value is a string of
the bytes read.

The behavior I observer when n is not provided doesn't agree
with the description. When I call read(), it appears that I
get whatever data is currently available. It does not read
until EOF. This seems to agree with the comment on the
"example" page:

# Read a chunk of data. Will not necessarily
# read all the data returned by the server.
data =

If read() did indeed read until EOF, then it would always
read all of the data returned by the server.

Is this a bug in the doc or in the code?

Grant Edwards grante Yow! How do I get HOME?
Jun 27 '08 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.