Skip to content

Commit

Permalink
limit log recv e send io smtp
Browse files Browse the repository at this point in the history
  • Loading branch information
breno-dsuite committed Nov 18, 2019
1 parent c7048b2 commit 8f254c7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions slimta/smtp/io.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ def raw_send(self, data):
if e.errno == ECONNRESET:
raise ConnectionLost()
raise
log.send(self.socket, data)
log.send(self.socket, data[:200])

def raw_recv(self):
try:
Expand All @@ -99,7 +99,7 @@ def raw_recv(self):
if e.errno == ECONNRESET:
raise ConnectionLost()
raise
log.recv(self.socket, data)
log.recv(self.socket, data[:200])
if data == b'':
raise ConnectionLost()
return data
Expand Down

0 comments on commit 8f254c7

Please sign in to comment.