https://bz.apache.org/SpamAssassin/show_bug.cgi?id=7938
Bug ID: 7938
Summary: spamd with SSL will wait for newline in body before
responding
Product: Spamassassin
Version: SVN Trunk (Latest Devel Version)
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P2
Component: spamc/spamd
Assignee: dev@spamassassin.apache.org
Reporter: mjcaley@darkarctic.com
Target Milestone: Undefined
When spamd is running with SSL it will hang expecting a newline character at
the end of the body. If the client closes the connection, the logs says it
finishes processing the message.
I started the server with:
spamd --ssl --port 11783 --server-cert ./private_key_and_cert.pem --server-key
./private_key_and_cert.pem --timeout-tcp=30 --timeout-child=30
I was able to reproduce with the following command:
echo -n abc | spamc --ssl --port 11783
It looks like it's hanging on this line:
https://svn.apache.org/viewvc/spamassassin/trunk/spamd/spamd.raw?view=markup#l1807
@msglines = ();
$actual_length = 0;
>>>> while (defined($_ = $client->getline())) {
$actual_length += length($_);
push(@msglines, $_);
It's probably the call to getline. I'm not sure if there's a different call to
get the number of bytes, since at this point it knows the expected length from
the Content-length header.
--
You are receiving this mail because:
You are the assignee for the bug.
Bug ID: 7938
Summary: spamd with SSL will wait for newline in body before
responding
Product: Spamassassin
Version: SVN Trunk (Latest Devel Version)
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P2
Component: spamc/spamd
Assignee: dev@spamassassin.apache.org
Reporter: mjcaley@darkarctic.com
Target Milestone: Undefined
When spamd is running with SSL it will hang expecting a newline character at
the end of the body. If the client closes the connection, the logs says it
finishes processing the message.
I started the server with:
spamd --ssl --port 11783 --server-cert ./private_key_and_cert.pem --server-key
./private_key_and_cert.pem --timeout-tcp=30 --timeout-child=30
I was able to reproduce with the following command:
echo -n abc | spamc --ssl --port 11783
It looks like it's hanging on this line:
https://svn.apache.org/viewvc/spamassassin/trunk/spamd/spamd.raw?view=markup#l1807
@msglines = ();
$actual_length = 0;
>>>> while (defined($_ = $client->getline())) {
$actual_length += length($_);
push(@msglines, $_);
It's probably the call to getline. I'm not sure if there's a different call to
get the number of bytes, since at this point it knows the expected length from
the Content-length header.
--
You are receiving this mail because:
You are the assignee for the bug.