Re: [viewvc-users] /tmp filling up with tempfile.*.tmp; annotate pdf's?
"C. Michael Pilato" <[email protected]> Tue, 28 Aug 2012 09:54:52 -0400
| Newsgroups | gmane.comp.version-control.cvs.viewcvs.user |
|---|---|
| Organization | CollabNet, Inc. |
| Message-ID | <503CCDAC.7010703__48645.2159625061$1346162101$gmane$org@collab.net> |
On 08/27/2012 08:48 PM, Karl Berry wrote: > My /tmp is filling up with tempfile.*.tmp files created by viewvc. [...] > When I click the "annotate" link on that page, I eventually get 504 > Gateway Timeout. Due to asynchronous operations, I can't prove that that > is what leaves the tempfiles behind, but it seems likely. I would agree that this seems the likely cause. > I'm not sure what more viewvc can do to clean up; I see the SIGTERM > handler in svn_repos.py, so one would think it would be happening. But > apparently not. No, the SIGTERM handler doesn't appear to do what I thought it would, so it's already been removed from ViewVC's trunk code. > Going in another direction, is there a way to tell viewvc not to show the > annotate links at all for certain files or file types or some such? It's > not like one can usefully annotate PDFs, after all. I could not find it, > but maybe I missed it. Likewise with the "diff with previous" links, and > similar. Not really -- not today. ViewVC could probably stand to have a pair of configuration switches, something like the following: # show links to content views (markup, annotate, diff) for files which # not human-readable (so-called binary files)? view_binary_files = 1 # list of MIME content types (with support for fnmatch-style glob # characters) which are considered human-readable. viewable_mime_types = text/*, application/xml What do you think? Do you suspect that this would meet your need? -- C. Michael Pilato <[email protected]> CollabNet <> www.collab.net <> Enterprise Cloud Development ------------------------------------------------------ http://viewvc.tigris.org/ds/viewMessage.do?dsForumId=4255&dsMessageId=3001633 To unsubscribe from this discussion, e-mail: [[email protected]].
signature.asc
(application/pgp-signature, 198 B)
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) iEYEARECAAYFAlA8zawACgkQokEGqRcG/W6OigCfU35u4TTfhPJHBnq6+VSsF1Va rDEAn0X4IGuU6DFmr4PDezntva5q65TZ =M6ck -----END PGP SIGNATURE-----