I looked at the code for smtp-sink.c.

It does the same as dbmail-lmtp: read one char at a time. Only
difference is that it uses getc(2) rather than read(2).



Artem Bokhan wrote:
> Paul J Stevens пишет:
>>
>> If you can think of, or direct me to a better approach for doing async
>> network reads in lmtp, please do share. I'm sure it's possible. But I
>> havent really dug into this yet.
>>
>>
>>   
> Although I'm not sure this can help you, the smallest example of fast
> and simple lmtp server it's possible to find with postfix,
> /src/smtpstone/smtp-sink.c
> 
> 
> NAME
> smtp-sink - multi-threaded SMTP/LMTP test server
> 
> SYNOPSIS
> smtp-sink [options] [inet:][host]:port backlog
> 
> smtp-sink [options] unix:pathname backlog
> 
> DESCRIPTION
> smtp-sink listens on the named host (or address) and port. It takes
> SMTP messages from the network and throws them away. The purpose is to
> measure client performance, not protocol compliance.
> 
> smtp-sink may also be configured to capture each mail delivery transac‐
> tion to file. Since disk latencies are large compared to network
> delays, this mode of operation can reduce the maximal performance by
> several orders of magnitude.
> 
> Connections can be accepted on IPv4 or IPv6 endpoints, or on UNIX-
> domain sockets. IPv4 and IPv6 are the default. This program is the
> complement of the smtp-source(1) program.
> 
> Note: this is an unsupported test program. No attempt is made to main‐
> tain compatibility between successive versions.
> 
> _______________________________________________
> DBmail mailing list
> [email protected]
> https://mailman.fastxs.nl/mailman/listinfo/dbmail
> 


-- 
  ________________________________________________________________
  Paul Stevens                                      paul at nfg.nl
  NET FACILITIES GROUP                     GPG/PGP: 1024D/11F8CD31
  The Netherlands________________________________http://www.nfg.nl
_______________________________________________
DBmail mailing list
[email protected]
https://mailman.fastxs.nl/mailman/listinfo/dbmail

Reply via email to