fproxy can now be launched automatically when the node starts, like in 0.3. To try it out append attached .conf file fragment to your freenet.conf file. You might have to change the port line if you are running something else on 8888 (e.g. fcpproxy). Known Issues: - file uploading isn't supported yet - splitfiles aren't supported yet Tavin, and Oskar: Here are some notes on the modifications I made to Freenet.client.SegmentOutputStream in order to make InternalClient work reliably. These changes are checked in. // Hacks to make InternalClient work. // There are two issues: // 0) InternalClient writes past the end of the // retrieved document size. The InputStream // used to source the data in SendData.receive() // appears to be 0 padded to multiples of the // part size. I worked around this problem // by having nextBucket() return a NullBucket // to catch the overflow. // 1) InternalClient uses the TransferCompletedEvent // from the SegmentOutputStream to decide when // to transition to the DONE state. The problem is // that with the overflow bytes from problem 0) // the InternalClient can transition to DONE // before the OutputStream for the destination // bucket is flushed. The code immediately below // explicitly flushes and closes the OutputStream. // // Revisit these hacks if/when InternalClient is // cleaned up. -- gj -- Freesites (0.3) freenet:MSK@SSK@enI8YFo3gj8UVh-Au0HpKMftf6QQAgE/homepage// (0.4) freenet:SSK@npfV5XQijFkF6sXZvuO0o~kG4wEPAgM/homepage//
############################################################ # Append this to your freenet.conf file to make # fproxy start automatically on port 8888 # when you start your node. ############################################################ ############################################################ # Services ############################################################ #################### # fproxy fproxy.class=Freenet.client.http.FproxyServlet fproxy.port=8888 fproxy.insertHtl=10 fproxy.requestHtl=10 fproxy.passThroughMimeTypes=text/plain,image/jpeg,image/gif,image/png fproxy.filter=true #fproxy.logLevel=minor #fproxy.logFile=foo.txt #################### # Services run in the same JVM as the node services=fproxy #################### # Services run in a separate JVM from the node # externalServices=fproxy # To run fproxy externally, uncomment the line above and # comment out the services= line. Then run: # # java Freenet.client.http.HttpServletRunner # # in the same directory as your freenet.conf file.
