summaryrefslogtreecommitdiff
path: root/content/llcache.c
Commit message (Collapse)AuthorAgeFilesLines
* turn off debugging and add some comments and todo from dsilversVincent Sanders2014-06-031-7/+9
|
* Adjust the llcache behaviour to use scheduler for user notification.Daniel Silverstone2014-06-031-2/+43
| | | | | | | | | | | | | This change updates the llcache to use the scheduler to notify users of the llcache of events. This should be just as safe as before and is part of an effort to remove hlcache_poll and llcache_poll eventually because fetchers should schedule themselves if need-be. This is a big change despite the diminutive nature of the patch. Please report issues promptly if they turn up after this and are not visible before it. Signed-off-by: Daniel Silverstone <dsilvers@netsurf-browser.org> Reviewed-by: Vincent Sanders <vince@netsurf-browser.org>
* attempt to purge low level cache on out of memory during fetchVincent Sanders2014-05-291-42/+60
|
* Fix leak of url schemes.Michael Drake2014-05-161-0/+1
|
* add helpers for time_t reading/writingVincent Sanders2014-05-151-26/+36
|
* add strptime compatabilityVincent Sanders2014-05-131-0/+2
|
* Extend low level source data cache with persistant storageVincent Sanders2014-05-131-139/+854
|
* Improve llcache header processingVincent Sanders2014-03-091-7/+22
| | | | | | By skipping empty headers and correctly dealing with whitespace around header names we store fewer entries with better adherance to allowed values in http responses.
* only try and cache http and https urlsVincent Sanders2014-03-091-7/+28
|
* remove unnecessary caching of whether a url has a query elementVincent Sanders2014-03-091-10/+1
|
* make nsurl_defragment() API more obvious and remove duplicated parameter ↵Vincent Sanders2014-03-091-7/+3
| | | | checking
* Make llcache debugging less invasiveVincent Sanders2014-02-211-67/+33
|
* Witespace cleanup to prepare for backing store additionVincent Sanders2014-02-211-122/+121
|
* Use corestrings.Michael Drake2014-01-241-28/+6
|
* Pass fetch redirect info up to content layer as content_msg. Mark redirect ↵Michael Drake2013-05-271-2/+13
| | | | origin URLs as visited in browser window content callback. Note this doesn't mean we track redirects, it just lets us get the :visited link style on links that redirect.
* ensure parameter contract is metVincent Sanders2013-05-041-0/+1
|
* free memory on error pathVincent Sanders2013-05-011-2/+6
|
* Initial changes ready to improve caching decisionsVincent Sanders2013-01-071-28/+63
|
* Downgrade TLS version support if it turns out the server can't cope with ↵John-Mark Bell2013-01-041-0/+53
| | | | TLSv1.1.
* Fixup for nsurl urldb.Michael Drake2012-10-091-1/+1
|
* cleanup and reorganise low level cache source ready for extending with disc ↵Vincent Sanders2012-04-281-1476/+1420
| | | | | | cache svn path=/trunk/netsurf/; revision=13893
* Fix bogus cache validation decisionJohn Mark Bell2011-12-081-1/+1
| | | | svn path=/trunk/netsurf/; revision=13261
* Rename nsurl_enquire to nsurl_has_component.Michael Drake2011-11-271-2/+2
| | | | svn path=/trunk/netsurf/; revision=13183
* Clean up fetch callback API. Inject some long-needed type safety.John Mark Bell2011-11-081-33/+35
| | | | svn path=/trunk/netsurf/; revision=13137
* Avoid making a new nsurl to remove fragment if there is no fragment.Michael Drake2011-10-051-5/+10
| | | | svn path=/trunk/netsurf/; revision=12958
* Make llcache_handle_get_url return a nsurl.Michael Drake2011-09-281-4/+2
| | | | svn path=/trunk/netsurf/; revision=12905
* Port llcache to nsurl.Michael Drake2011-09-281-150/+97
| | | | svn path=/trunk/netsurf/; revision=12904
* Port fetch layer to nsurl. Remove unused fetch_get_referer function.Michael Drake2011-09-271-3/+45
| | | | svn path=/trunk/netsurf/; revision=12899
* Make high level cache, low level cache and image cache all be initialised ↵Vincent Sanders2011-09-101-35/+54
| | | | | | | | | from passed parameters Calculate all cache sizes from single memory cache size option and sanity check have a single global struct to hold all parameters instead of several individual variables svn path=/trunk/netsurf/; revision=12784
* Handle zero-length documents correctlyJohn Mark Bell2011-09-081-0/+18
| | | | svn path=/trunk/netsurf/; revision=12778
* Sniff content types where appropriate.John Mark Bell2011-09-041-1/+16
| | | | | | We never sniff for CSS, nor for non-page artefacts (e.g. treeview icons) svn path=/trunk/netsurf/; revision=12707
* Implement todoJohn Mark Bell2011-05-161-4/+1
| | | | svn path=/trunk/netsurf/; revision=12418
* Squash static analyser warningJohn Mark Bell2011-05-161-3/+0
| | | | svn path=/trunk/netsurf/; revision=12416
* Shunt the schedule function definitions to desktop/schedule.h. Shunt the ↵Daniel Silverstone2011-03-131-22/+3
| | | | | | hlcache/llcache to using schedule to get their cleanups run. svn path=/trunk/netsurf/; revision=12029
* Protect against object being cleaned while waiting for a query responseJohn Mark Bell2011-03-031-3/+15
| | | | svn path=/trunk/netsurf/; revision=11894
* Make no-cache a tristate. In the case of a forced reload, we want to ↵John Mark Bell2011-02-241-6/+21
| | | | | | revalidate once only. svn path=/trunk/netsurf/; revision=11791
* Revert the functional change from r11789: the no-cache directive forces us ↵John Mark Bell2011-02-241-1/+0
| | | | | | to revalidate a cached object, not reject it entirely. svn path=/trunk/netsurf/; revision=11790
* Ensure cache hits after a forced reload -- don't even attempt to reuse ↵John Mark Bell2011-02-241-3/+6
| | | | | | objects with the no_cache flag set (as they'll never be considered fresh, thus requiring a round trip to the server every time they're used). Instead, we'll fetch a new object, which will be considered fresh for caching purposes. svn path=/trunk/netsurf/; revision=11789
* Use cache control data invalidation function everywhere we want the cache ↵John Mark Bell2011-02-241-14/+14
| | | | | | | | | control data reset. Fix cache control data invalidation to reset the age and max_age fields to INVALID_AGE. Fix cache control data reset on encountering an HTTP response line to occur before we fill in the response time, rather than after it. svn path=/trunk/netsurf/; revision=11783
* Improve commentary.John Mark Bell2011-02-231-2/+6
| | | | | | Stop leaking object_scheme in error cases. svn path=/trunk/netsurf/; revision=11778
* add resource handlingVincent Sanders2011-02-231-5/+20
| | | | | | move gtk and framebuffer to use generic resource handling svn path=/trunk/netsurf/; revision=11772
* Fix bug #3184972: cope with server sending a 304 in response to an ↵John Mark Bell2011-02-171-17/+28
| | | | | | unconditional request. svn path=/trunk/netsurf/; revision=11710
* Revert r10650/1. We no longer require noisy fetch/cache logging.John Mark Bell2011-01-061-1/+1
| | | | svn path=/trunk/netsurf/; revision=11223
* Add some assert()s.Michael Drake2010-12-291-0/+2
| | | | svn path=/trunk/netsurf/; revision=11144
* User may have no handle if it was the target of an iterator when the handle ↵John Mark Bell2010-12-161-1/+1
| | | | | | was aborted svn path=/trunk/netsurf/; revision=11071
* Ensure that we clean up after the client even if they report an error from ↵John Mark Bell2010-12-151-16/+24
| | | | | | their notification callback. svn path=/trunk/netsurf/; revision=11067
* Make llcache_object_user objects distinct from llcache_handles.John Mark Bell2010-12-151-32/+112
| | | | | | | This allows us to be robust against clients completely changing the contents of the user list underneath us during iteration. Fix llcache_send_event_to_users to also be robust against the user list changing under it. svn path=/trunk/netsurf/; revision=11063
* Always invalidate next/prev pointersJohn Mark Bell2010-12-131-2/+0
| | | | svn path=/trunk/netsurf/; revision=11052
* Revert r11047-11050: if we remove a user from an object while it's the ↵John Mark Bell2010-12-131-12/+7
| | | | | | | | iterator target, the effect will be that the iteration terminates early. Subsequent users that require notifications will simply have their notifications delayed svn path=/trunk/netsurf/; revision=11051
* Take 2: make callers of llcache_object_user_destroy invalidate next/prev ↵John Mark Bell2010-12-131-2/+7
| | | | | | pointers svn path=/trunk/netsurf/; revision=11050