Receive new posts synchronously

main2
Bob Mottram 2019-11-01 21:10:59 +00:00
parent 6d1e375ccb
commit 7b8e639511
1 changed files with 8 additions and 6 deletions

View File

@ -2747,13 +2747,15 @@ class PubServer(BaseHTTPRequestHandler):
headers[dictEntryName]=headerLine
print('New post headers: '+str(headers))
print('Creating new post thread: '+newPostThreadName)
self.server.newPostThread[newPostThreadName]= \
threadWithTrace(target=self._receiveNewPostThread, \
args=(authorized,postType,path,headers),daemon=True)
#print('Creating new post thread: '+newPostThreadName)
#self.server.newPostThread[newPostThreadName]= \
# threadWithTrace(target=self._receiveNewPostThread, \
# args=(authorized,postType,path,headers),daemon=True)
#print('Starting new post thread')
#self.server.newPostThread[newPostThreadName].start()
print('Starting new post thread')
self.server.newPostThread[newPostThreadName].start()
print('Creating new post: '+newPostThreadName)
self._receiveNewPostThread(authorized,postType,path,headers)
return pageNumber
def do_POST(self):