I2P Address: [http://git.idk.i2p]

Skip to content
Snippets Groups Projects

i2ptunnel: HTTPResponseOutputStream cleanup

Merged zzz requested to merge zzz/i2p.i2p:i2ptunnel-cleanup into master

This is very old code; a lot more is possible but this is a start. Verified all main() tests pass.

  • Reduce buffer size to 4K to match that used elsewhere in i2ptunnel
  • Grow buffer by 2x instead of 1.5x
  • Eliminate numerous dup method calls
  • Eliminate write(byte[]) method present in super
  • Rewrite headerReceived() to be more efficient
  • Pre-convert constant Strings to bytes
  • Remove _context field
  • Remove isNL() method
  • Null out _headerBuffer unconditionally

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
Please register or sign in to reply
Loading