                 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)

            req.on 'error', (err) ->
                clearTimeout( timing );
                cb(err)
            
            fn = timeout_wrapper req
            timing = setTimeout( fn, timeout );

module.exports = NodeURLHandler
        else
            data = ''

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

