Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Varnish: Dev

Patches to fix leaking busyobj

 

 

Varnish dev RSS feed   Index | Next | Previous | View Threaded


martin at varnish-software

Aug 2, 2011, 2:16 PM

Post #1 of 2 (268 views)
Permalink
Patches to fix leaking busyobj

Find attached two patches to deal with leaking busyobj structures.

First one frees any busyobj structure attached to the worker on thread exit.

Second one deals with early deref's of objects (before HSH_Unbusy, e.g. due
to failures), returning the busyobj to the worker.

Any comments appreciated.

Regards,
Martin Blix Grydeland

--
Martin Blix Grydeland
Varnish Software AS
Attachments: free-busyobj.patch (0.54 KB)
  hsh_deref-return-busyobj.patch (0.96 KB)


phk at phk

Aug 3, 2011, 1:40 AM

Post #2 of 2 (260 views)
Permalink
Re: Patches to fix leaking busyobj [In reply to]

Looks good.

Nice catch.

>Find attached two patches to deal with leaking busyobj structures.

--
Poul-Henning Kamp | UNIX since Zilog Zeus 3.20
phk [at] FreeBSD | TCP/IP since RFC 956
FreeBSD committer | BSD since 4.3-tahoe
Never attribute to malice what can adequately be explained by incompetence.

_______________________________________________
varnish-dev mailing list
varnish-dev [at] varnish-cache
https://www.varnish-cache.org/lists/mailman/listinfo/varnish-dev

Varnish dev RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.