chicken-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Chicken-users] OpenSSL egg option defaults poll


From: Andy Bennett
Subject: Re: [Chicken-users] OpenSSL egg option defaults poll
Date: Sun, 23 Nov 2014 02:57:09 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Icedove/24.8.1

Hi,

> IIRC we were waiting for andyjpb and company to fix the breakage introduced
> by the buffering patch so we could pull in current upstream and then push
> the patches or something ...

Please find attached a patch to v1.6.4 of the openssl egg.

This patch:

  + Ensures that startup is called once, with the correct
    "called-from-close" flag in each of the write, close and flush
    procedures. I think "flush" is always called when the port is
    supposed to be open.

  + Introduces a dependency on srfi-13 for the string-copy! and
    substring/shared procedures. This is so that we can do buffer
    management with the minimal of excess copying and garbage
    collection.

  + Reworks the buffered write logic to ensure that we always flush the
    buffer in full chunks apart from during the close and flush
    procedures where we just write whatever is left.


I've done a minimal amount of testing and it seems to work. It seems to
produce files with the same md5sum as the version without the patch so I
don't think it corrupts the data. i.e. I think the buffer handling is
correct.

On my local machine I can't measure a speedup when downloading a static,
178MiB file or a 3.9MiB file generated with SXML / waffle, both via spiffy..





Regards,
@ndy

-- 
address@hidden
http://www.ashurst.eu.org/
0x7EBA75FF

Attachment: openssl-egg-andyjpb-fix-2014-11-23.patch
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]