             req.on 'error', (err) ->
                 clearTimeout( timing );
                 cb(err)
-            
+
             fn = timeout_wrapper req
-            timing = setTimeout( fn, timeout );
+            timing = setTimeout( fn, options.timeout or 120000 );
 
-module.exports = NodeURLHandler+module.exports = NodeURLHandler

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

        else
            data = ''

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

