Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Sent all data over the socket instead of only the first buffer.

  • Loading branch information...
commit 10bc5d8264cf29fa1cd0144daa43992da9d5e243 1 parent 47d7589
@hannosch hannosch authored
Showing with 4 additions and 4 deletions.
  1. +3 −0  CHANGES.txt
  2. +1 −4 src/collective/ATClamAV/scanner.py
View
3  CHANGES.txt
@@ -4,6 +4,9 @@ Changelog
1.2 - unreleased
----------------
+- Sent all data over the socket instead of only the first buffer.
+ [hannosch]
+
- Added error logging for failed scans.
[hannosch]
View
5 src/collective/ATClamAV/scanner.py
@@ -76,16 +76,13 @@ def scanBuffer(self, buffer, type, **kwargs):
try:
n.connect((host, sport))
- sended = n.send(buffer)
+ n.sendall(buffer)
except socket.error:
s.close()
raise ScanError('Error communicating with clamd')
finally:
n.close()
- if sended<len(buffer):
- raise ScanError('BufferTooLong')
-
result='...'
try:
while result != '':
Please sign in to comment.
Something went wrong with that request. Please try again.