main
Bob Mottram 2020-04-16 12:57:13 +01:00
parent 607c0aa40e
commit c687d0ce52
1 changed files with 5 additions and 0 deletions

View File

@ -791,6 +791,11 @@ class PubServer(BaseHTTPRequestHandler):
"""
# if the inbox queue is full then return a busy code
if len(self.server.inboxQueue) >= self.server.maxQueueLength:
if messageJson.get('actor'):
print('Queue: Inbox queue is full. Incoming post from ' +
messageJson['actor'])
else:
print('Queue: Inbox queue is full')
self._503()
self.server.POSTbusy = False
return 2