@defer.inlineCallbacks
def getwork(self, request, long_poll=False):
- id = random.randrange(10000)
- if p2pool.DEBUG:
- print 'POLL %i START long_poll=%r' % (id, long_poll)
-
request_id = get_id(request)
memory = get_memory(request)
+ id = random.randrange(10000)
+ if p2pool.DEBUG:
+ print 'POLL %i START long_poll=%r user_agent=%r x-work-identifier=%r' % (id, long_poll, request.getHeader('User-Agent'), request.getHeader('X-Work-Identifier'))
+
if request_id not in self.last_cache_invalidation:
self.last_cache_invalidation[request_id] = variable.Variable((None, None))