On Sun, Jan 12, 2003 at 09:32:57PM +0100, Frank v Waveren wrote:
> I noticed fred/fproxy was creating temporary files in its working
> directory, and I suspect line 150 of MIME.java, as this creates a
> FileBucketFactory without passing it the correct value of tempDir.
Hmm. Which branch fred? I'm reasonably sure I fixed this in the devel
branch... the solution was to put the node temp dir in the System
parameter "java.io.tmpdir" or something similar...
> 
> Fixing this (and several other places where the same happens) isn't
> trivial, I've come up with the following solutions:
> 
> -Get the tempDir out of the BucketFactory you already have. This
>  means you have to force it to be a FileBucketFactory, which is not a
>  nice solution for something so general.
> -Get the value directly out of the config file. This might be tricky
>  as you don't know where the config file is, and from a support-code
>  perspective would be even worse than the previous.
> -Use $TMP/$TMPDIR. This would mean that having yet another config value 
>  apart from tempDir and FECTempDir. Another slight drawback is that java
>  doesn't allow us to access the environment anymore.
> -Have a reasonable tempDir be passed via the constructor.
> 
> The last seems the most viable, but is still far from nice. Any better
> suggestions?
> 
> -- 
> Frank v Waveren                                      Fingerprint: 21A7 C7F3
> fvw@[var.cx|stack.nl|chello.nl] ICQ#10074100            1FF3 47FF 545C CB53
> Public key: hkp:[EMAIL PROTECTED]            7BD9 09C0 3AC1 6DF2
> 
> _______________________________________________
> devl mailing list
> [EMAIL PROTECTED]
> http://hawk.freenetproject.org/cgi-bin/mailman/listinfo/devl
> 

-- 
Matthew Toseland
[EMAIL PROTECTED][EMAIL PROTECTED]
Freenet/Coldstore open source hacker.
Contracted full time by Freenet Project Inc.
http://freenetproject.org/
ICTHUS.

Attachment: msg06230/pgp00000.pgp
Description: PGP signature

Reply via email to