mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
tupkgs: Print date and time when a client connects.
Signed-off-by: Loui Chang <louipc.ist@gmail.com>
This commit is contained in:
parent
24c9955b3c
commit
a669db5c7a
1 changed files with 1 additions and 0 deletions
|
@ -226,6 +226,7 @@ class ServerSocket(threading.Thread):
|
|||
sread, swrite, serror = select.select([self.socket],[self.socket],[self.socket],1)
|
||||
if sread:
|
||||
(clientsocket, address) = self.socket.accept()
|
||||
print time.asctime(time.gmtime())
|
||||
print "New connection from " + str(address)
|
||||
ct = ClientSocket(clientsocket)
|
||||
ct.start()
|
||||
|
|
Loading…
Add table
Reference in a new issue