Coverage for scrapy/utils/reactor : 73%
Hot-keys on this page
r m x p toggle line displays
j k next/prev highlighted chunk
0 (zero) top of page
1 (one) first highlighted chunk
|
"""Like reactor.listenTCP but tries different ports in a range.""" return reactor.listenTCP(portrange, factory, interface=host) return reactor.listenTCP(0, factory, interface=host) return reactor.listenTCP(portrange[0], factory, interface=host) except error.CannotListenError: if x == portrange[1]: raise
"""Schedule a function to be called in the next reactor loop, but only if it hasn't been already scheduled since the last time it run. """
self._call.cancel()
|