Compare commits
2 commits
49c58c94da
...
9ebe7933cb
Author | SHA1 | Date | |
---|---|---|---|
9ebe7933cb | |||
84c07efd0a |
2 changed files with 4 additions and 7 deletions
|
@ -1,5 +1,3 @@
|
||||||
import datetime
|
|
||||||
|
|
||||||
from xenu_nntp.db import DatabaseTable
|
from xenu_nntp.db import DatabaseTable
|
||||||
|
|
||||||
class Newsgroup(DatabaseTable):
|
class Newsgroup(DatabaseTable):
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
import re
|
import re
|
||||||
import enum
|
|
||||||
import threading
|
import threading
|
||||||
import socket
|
import socket
|
||||||
import selectors
|
import selectors
|
||||||
|
@ -38,7 +37,7 @@ class Server():
|
||||||
|
|
||||||
try:
|
try:
|
||||||
sock, addr = listener.accept()
|
sock, addr = listener.accept()
|
||||||
except ssl.SSLError as e:
|
except ssl.SSLError:
|
||||||
return
|
return
|
||||||
|
|
||||||
def spawn():
|
def spawn():
|
||||||
|
@ -46,11 +45,11 @@ class Server():
|
||||||
|
|
||||||
try:
|
try:
|
||||||
session.handle()
|
session.handle()
|
||||||
except (ssl.SSLEOFError, ssl.SSLError):
|
|
||||||
pass
|
|
||||||
|
|
||||||
thread = threading.Thread(target=spawn)
|
thread = threading.Thread(target=spawn)
|
||||||
thread.start()
|
thread.start()
|
||||||
|
except (ssl.SSLEOFError, ssl.SSLError):
|
||||||
|
pass
|
||||||
|
|
||||||
def run(self):
|
def run(self):
|
||||||
hosts = re.split(r'\s*,\s*', self.config.get('listen', 'host'))
|
hosts = re.split(r'\s*,\s*', self.config.get('listen', 'host'))
|
||||||
|
|
Loading…
Add table
Reference in a new issue