                 res.on 'data', (chunk) ->
                     data += chunk
                     clearTimeout( timing );
-                    timing = setTimeout( fn, timeout );
+                    timing = setTimeout( fn, options.timeout or 120000 );
                 res.on 'end', ->
                     clearTimeout( timing );
                     xml = new DOMParser().parseFromString(data)


class NodeURLHandler
    @get: (url, options, cb) ->
   
        url = uri.parse(url)
        if url.protocol is 'file:'
            fs.readFile url.pathname, 'utf8', (err, data) ->

        else
            data = ''

            timeout_wrapper = ( req ) ->
                return ->
                    req.abort( );

