Skip to content
This repository was archived by the owner on Nov 23, 2017. It is now read-only.
This repository was archived by the owner on Nov 23, 2017. It is now read-only.

detect connection lost when working with streams #95

@GoogleCodeExporter

Description

@GoogleCodeExporter
When you create a client using:

reader, writer = yield from asyncio.streams.open_connection(...)

and then start reading and writing from 'reader' and 'writer', you have no way 
to detect if the server prematurely disconnects. Right now you only get a 
logging warning saying that send() raised an exception.

One possible workaround would be to force reader.read() and writer.write() to 
raise an IOError when the connection is lost.


Original issue reported on code.google.com by llpam...@gmail.com on 6 Dec 2013 at 11:22

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions