3
Z'íc% ã @ s d dl mZ d dlZddlmZ ddlmZ ddlmZ ddl m
Z
mZ d d
Zej
ddfddZd
d Zdd Zdd ZedZdS )é )Úabsolute_importNé )Ú_appengine_environ)ÚLocationParseError)Úsixé )ÚNoWayToWaitForSocketErrorÚ
wait_for_readc C sJ t | dd}|dkrdS |dkr$dS yt|ddS tk
rD dS X dS )a$
Returns True if the connection is dropped and should be closed.
:param conn:
:class:`http.client.HTTPConnection` object.
Note: For platforms like AppEngine, this will always return ``False`` to
let the platform handle connection recycling transparently for us.
ÚsockFNTg )Útimeout)Úgetattrr r )Úconnr