cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: [new feature] Maximum limitation of cookies.

From: YAMADA Yasuharu <yasuharu.yamada_at_access-company.com>
Date: Fri, 10 May 2013 12:21:47 +0900

Hi Daniel and Frank,

I forked curl on github.
URL: https://github.com/aYasuharuYamada/curl

2013/5/3 Daniel Stenberg <daniel_at_haxx.se>

> * CURLSHOPT_MAXCOOKIES - the share interface is mention to control what
> the
> shared object should share. It is not for setting options within the
> data
> it shares. This option isn't matching that concept. CURLOPT_MAXCOOKIES
> should be enough!
>

I follow the concept and delete CURLSHOPT_MAXCOOKIES.
https://github.com/aYasuharuYamada/curl/commit/7fdf38c526fcf50065f17980a7fc502ee3c62b0f

 * Why is 'access_time' made as a curl_off_t when it assigns it a time_t
> anyway ?

I change that 'access_time' is made as a time_t.
https://github.com/aYasuharuYamada/curl/commit/e4f8418fe6c843f7284e9403200472c3b959667d

2013/5/7 Frank Meier <frank.meier_at_ergon.ch>
>
> I just thought about a memory limit (the sum of memory that is used by all
> cookies).
> I don't know how the cookie store is organized internally but in the
> essence it would be something like: strlen(cookie_name) +
> strlen(cookie_value) + ..domain.. + ..path.. + ... for all cookies.
>
> There are even further limits we could think of:
> - maximum size of one cookie
> - cookie store limit (memory and count) for one domain/host
>
> but since your initial post suggests you want be on the safe side for
> embedded systems, a global limit for the whole store would suffice.

Thank you for your opinion.
I give up to develop memory limit because I can expect the total memory
size.
I mean, if it defines max_cookies, maximum total memory size is about
6Kbyte*max_cookies. Because 'maximum size of one cookie' is about 6Kbyte
which is defined by MAX_COOKIE_LINE + MAX_NAME.

Best regards,
thanks
===============
YAMADA Yasuharu
ACCESS CO., LTD.
Yasuharu.Yamada_at_access-company.com

-- 
.
________________________________________
The contents of this e-mail message and any attachments are confidential and are intended solely for the addressee. The information may also be legally privileged. 
This transmission is sent in trust, and the sole purpose of delivery to the intended recipient. If you have received this transmission in error, any use, reproduction or dissemination of this transmission is strictly prohibited. 
If you are not the intended recipient, please immediately notify the sender by reply e-mailer and delete this message and its attachments, if any.
Thank you for your cooperation.
________________________________________

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2013-05-10