Ñò AñUc @sddkZyddklZlZWnIej o=eZyddklZWqrej o eZqrXnXd„Zeiddd„Z d„Z dS(iÿÿÿÿN(tpolltPOLLIN(tselectcCsÚt|dtƒ}|tjotS|djotStpHtptSyt|gggdƒdSWq…tij otSXntƒ}|i|t ƒx5|idƒD]$\}}||i ƒjotSq®WdS(s  Returns True if the connection is dropped and should be closed. :param conn: :class:`httplib.HTTPConnection` object. Note: For platforms like AppEngine, this will always return ``False`` to let the platform handle connection recycling transparently for us. tsockgiN( tgetattrtFalsetNonetTrueRRtsocketterrortregisterRtfileno(tconnRtptfnotev((sO/usr/lib/python2.6/vendor-packages/requests/packages/urllib3/util/connection.pytis_connection_dropped s$      cCs/|\}}d}xðti||dtiƒD]Ó}|\}} } } } d} ypti|| | ƒ} t| |ƒ|tij o| i|ƒn|o| i|ƒn| i| ƒ| SWq.ti j o0}|}| dj o| i ƒd} qq.Xq.W|dj o |‚nti dƒ‚dS(sdConnect to *address* and return the socket object. Convenience function. Connect to *address* (a 2-tuple ``(host, port)``) and return the socket object. Passing the optional *timeout* parameter will set the timeout on the socket instance before attempting to connect. If no *timeout* is supplied, the global default timeout setting returned by :func:`getdefaulttimeout` is used. If *source_address* is set it must be a tuple of (host, port) for the socket to bind as a source address before making the connection. An host of '' or port 0 tells the OS to use the default. is!getaddrinfo returns an empty listN( RRt getaddrinfot SOCK_STREAMt_set_socket_optionst_GLOBAL_DEFAULT_TIMEOUTt settimeouttbindtconnectR tclose(taddressttimeouttsource_addresstsocket_optionsthosttportterrtrestaftsocktypetprotot canonnametsaRt_((sO/usr/lib/python2.6/vendor-packages/requests/packages/urllib3/util/connection.pytcreate_connection0s.       cCs4|djodSx|D]}|i|ŒqWdS(N(Rt setsockopt(Rtoptionstopt((sO/usr/lib/python2.6/vendor-packages/requests/packages/urllib3/util/connection.pyR]s  ( RRRRt ImportErrorRRRRR'R(((sO/usr/lib/python2.6/vendor-packages/requests/packages/urllib3/util/connection.pyts  $,