This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author pitrou
Recipients Hiroaki.Kawai, neologix, pitrou
Date 2013-04-09.15:44:41
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <815471122.38534237.1365522275563.JavaMail.root@zimbra10-e2.priv.proxad.net>
In-reply-to <CABD3daqokp2NUsc0nNik-LGg5YZWkU3EGJc1wDVzsYRZjhybxg@mail.gmail.com>
Content
> The error looks like : SSLError(8, '_ssl.c:1363: EOF occurred in
> violation
> of protocol')
> But why we see "in violation of protocol" here?

Because the SSL layer wasn't shutdown cleanly: the TCP connection was
closed while the SSL layer was still active. You have three solutions
around this:

- you can call unwrap() for a clean SSL shutdown (the server has to call
unwrap() too).

- you can use suppress_ragged_eofs=True with wrap_socket()

- you can simply avoid reading past the server's data, which will
solve the problem altogether
History
Date User Action Args
2013-04-09 15:44:41pitrousetrecipients: + pitrou, neologix, Hiroaki.Kawai
2013-04-09 15:44:41pitroulinkissue17672 messages
2013-04-09 15:44:41pitroucreate