forked from indymedia/epicyon
Also remove the inbox queue file
parent
323e806adb
commit
e2ddd3b0de
|
@ -430,7 +430,9 @@ class PubServer(BaseHTTPRequestHandler):
|
||||||
# Check if the queue is full
|
# Check if the queue is full
|
||||||
if len(self.server.inboxQueue)>=self.server.maxQueueLength:
|
if len(self.server.inboxQueue)>=self.server.maxQueueLength:
|
||||||
print('Inbox queue is full. Removing oldest items.')
|
print('Inbox queue is full. Removing oldest items.')
|
||||||
while len(self.server.inboxQueue) >= self.server.maxQueueLength-2:
|
while len(self.server.inboxQueue) >= self.server.maxQueueLength-4:
|
||||||
|
queueFilename=self.server.inboxQueue[0]
|
||||||
|
os.remove(queueFilename)
|
||||||
self.server.inboxQueue.pop(0)
|
self.server.inboxQueue.pop(0)
|
||||||
|
|
||||||
# Convert the headers needed for signature verification to dict
|
# Convert the headers needed for signature verification to dict
|
||||||
|
|
Loading…
Reference in New Issue