[issue23554] EchoServerClientProtocol class should be called EchoServerProtocol

2015-02-28 Thread Giovanni Cannata

New submission from Giovanni Cannata:

In 18.5.4.3.2. TCP echo server protocol the class in the example code is called 
EchoServerClientProtocol.  It should be EchoServerProtocol. (The client 
protocol example is correctly called EchoClientProtocol).

--
assignee: docs@python
components: Documentation
messages: 236932
nosy: docs@python, gc
priority: normal
severity: normal
status: open
title: EchoServerClientProtocol class should be called EchoServerProtocol
versions: Python 3.4

___
Python tracker 
<http://bugs.python.org/issue23554>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue23749] asyncio missing wrap_socket

2015-03-23 Thread Giovanni Cannata

New submission from Giovanni Cannata:

It's not possible to wrap a socket in tls. The StreamWriter object should have 
an option to start a tls negotiation using the SSLContext of the server.

This is needed for protocols the have a "start_tls" feature, for example the 
ldap protocol.

In a non async program it's very easy: 
   wrapped_socket = ssl_context.wrap_socket(connection.socket, 
server_side=True, do_handshake_on_connect=True)

there should be something similar in the StreamWriter interface:
   yield from writer.wrap_socket()

Bye,
Giovanni

--
components: asyncio
messages: 239021
nosy: gc, gvanrossum, haypo, yselivanov
priority: normal
severity: normal
status: open
title: asyncio missing wrap_socket
type: enhancement
versions: Python 3.4

___
Python tracker 
<http://bugs.python.org/issue23749>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue23749] asyncio missing wrap_socket

2015-03-23 Thread Giovanni Cannata

Giovanni Cannata added the comment:

Thanks, I will look to the new implementation of ssl in 3.5, and try to adapt 
it for my project (sldap3). I'd like to help, but I'm not skilled in 
asynchronous programming so I'm not sure if I succeed.

Bye,
Giovanni

--

___
Python tracker 
<http://bugs.python.org/issue23749>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com