sks-devel
[Top][All Lists]
Advanced

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

Re: [Sks-devel] SKS, Content-Length and HEAD requests


From: Marian Kechlibar
Subject: Re: [Sks-devel] SKS, Content-Length and HEAD requests
Date: Wed, 03 Nov 2010 07:36:17 +0100
User-agent: Mozilla/5.0 (Windows; U; Windows NT 6.0; cs; rv:1.9.2.12) Gecko/20101027 Lightning/1.0b2 Thunderbird/3.1.6

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
 
Would anybody here be willing to add Johan's Content-Length patch to
sks source tree and deploy the patched
version of the server on any of the sks-keyservers.net?

If so, I could test the client against it.

Best regards

Marian


Dne 2.11.2010 22:57, Johan van Selst napsal(a):
> Marian Kechlibar wrote:
>> the modification with limit is good. This could be easy and
>> straightforward. I would still very much like Content-Length to
>> be present in the header. This makes things so much easier on a
>> slow network.
>
> This should be simple enough to add. Something like the patch
> below might do the trick.
>
>
> Johan
>
> --- a/wserver.ml 2010-11-02 22:52:40.766457000 +0100 +++
> b/wserver.ml 2010-11-02 22:54:47.593314000 +0100 @@ -239,6 +239,7
> @@ let send_result cout ?(error_code = 200) ?(content_type =
> "text/html; charset=UTF-8") body = fprintf cout "HTTP/1.0 %03d
> OK\r\n" error_code; fprintf cout "Server: sks_www/%s\r\n" version;
> + fprintf cout "Content-length: %u\r\n" (String.length body + 2);
> fprintf cout "Content-type: %s\r\n\r\n" content_type; fprintf cout
> "%s\r\n" body; flush cout

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
 
iQIcBAEBAgAGBQJM0QLhAAoJEOJiGpwt9DuCkNUP/1XE3A0xO6YcZeg1/fkl11Ob
OBVPebkp/NfPrt7vtMTSBhgXH19TLwJ+VgfQcjFPRgekQ2C3raDjLwasReVI+7EG
kCdo6zb8OAXXRqT55u2eHRfdb/0SfNzYVYm6+kSb5nbp3PYocWjSiJv93wov8sgt
iAMxDVyFbXcigvH738fmz1sPkIcdnA+AWkm22SjaNq+2nO9lktkveBpCSbS81qxD
F4LEkWj1BiQwRdmk5L9vB+oH1kLhrrnh91Ih1kNAB8sYoXVjLyxtG/PUryaPaLdW
DAEd4zFVdGIzjAgFoknb7TNIs5cJ/YHlO0rdvq3g4ieoeAjlihZxrFHEAmPwsv/Y
mqRtjiYE4LOQOp19SA34Y2Ky4DZn9lcscrVdWR448ruRwAK6hRqQwahznoddivXH
jz3dqv+4gSMWP+Us0v+5ZTc4wtPXcBQjBy+ughbQN0dKSpYt3oNn9DAJDyvfSROM
SKFd6oj19l/4AauefaRAx7tUBb4Xae7gJFl8fu5eO3Iq6XMOACojgoItVzFlBoNr
S06TKIDWqWkV57r7st+83qbmPvrr7ax8B2h+7Do8hVGsdpsYRhtCoBo+9xXTJdJW
l1V5fmhwwN4CTppnCB5/XZgKX2fk4TJKuCzwIFVWnPJHxHO7LRug/eVZXcixMkGr
XM/DZnhIpyx+E5Naqs7F
=FWlJ
-----END PGP SIGNATURE-----




reply via email to

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