[exim-dev] [Bug 926] New: clamd 0.95 deprecates "STREAM" com…

Kezdőlap
Üzenet törlése
Válasz az üzenetre
Szerző: J R Binks
Dátum:  
Címzett: exim-dev
Új témák: [exim-dev] [Bug 926] clamd 0.95 deprecates "STREAM" command, [exim-dev] [Bug 926] clamd 0.95 deprecates "STREAM" command, [exim-dev] [Bug 926] clamd 0.95 deprecates "STREAM" command, [exim-dev] [Bug 926] clamd 0.95 deprecates "STREAM" command, [exim-dev] [Bug 926] clamd 0.95 deprecates "STREAM" command, [exim-dev] [Bug 926] clamd 0.95 deprecates "STREAM" command
Tárgy: [exim-dev] [Bug 926] New: clamd 0.95 deprecates "STREAM" command
------- You are receiving this mail because: -------
You are on the CC list for the bug.

http://bugs.exim.org/show_bug.cgi?id=926
           Summary: clamd 0.95 deprecates "STREAM" command
           Product: Exim
           Version: 4.70
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: wishlist
          Priority: low
         Component: Content Scanning
        AssignedTo: tom@???
        ReportedBy: jethro.binks@???
                CC: exim-dev@???



Hi,

I just wanted to raise the issue that, as of clamd 0.95 I think, the
"STREAM" command (which receives a PORT to which the client should
re-connect in order to perform the scan) is deprecated, in favour of
"INSTREAM" where the data to be scanned is sent on the same connection.

http://wiki.clamav.net/bin/view/Main/UpgradeNotes095

clamd man page:

       INSTREAM
              It is mandatory to prefix this command with n or z.


              Scan  a  stream  of data. The stream is sent to clamd in chunks,
              after INSTREAM, on the same socket  on  which  the  command  was
              sent.   This avoids the overhead of establishing new TCP connec-
              tions and problems  with  NAT.  The  format  of  the  chunk  is:
              '<length><data>'  where  <length>  is  the size of the following
              data in bytes expressed as a 4 byte unsigned integer in  network
              byte  order  and <data> is the actual chunk. Streaming is termi-
              nated by sending  a  zero-length  chunk.  Note:  do  not  exceed
              StreamMaxLength  as  defined in clamd.conf, otherwise clamd will
              reply with INSTREAM size limit exceeded and  close  the  connec-
              tion.
...
       DEPRECATED COMMANDS


       STREAM Scan stream - on this command clamd will  return  "PORT  number"
              you  should  connect  to and send data to scan. (DEPRECATED, use
              INSTREAM instead)
...


Note also that it is recommended to send "zINSTREAM" to denote the delimiter is
null.


--
Configure bugmail: http://bugs.exim.org/userprefs.cgi?tab=email