Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Preview enhancements #6

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

jclyne
Copy link

@jclyne jclyne commented Jun 20, 2012

Hi. I recently made some changes to

  1. better support OSGI be removing a dependency on a non-exported package, netty.internal. This dependency was just for the StringUtils end of line character, so I just duplicated the code internally.
  2. better support icap preview requests by supporting 0 length previews, checking for early termination in the Icap chunk trailer, and removing the preview header when the request has a null body or is being "replayed" after the continuation chunks of the body have been received.

I have been doing my testing with squid3.1.19, that is where I uncovered the issues

(sorry for the whitespace diffs, that is intellij)

Thanks for all your work!

jclyne added 4 commits June 20, 2012 10:42
…t is not exported by the OSGI bundle and it is only used for the End of Line character
…lid or does not exist, a value of -1 is set instead of 0, as it is a valid preview value. Also, needed to remove the PREVIEW header when the message has a null-body as the PREVIEW is set to 0 in this case.
eblocker pushed a commit to eblocker/netty-icap that referenced this pull request Jan 15, 2020
…-1963-2008 to develop

* commit '3db14b267e03f0e5ba6631eb0d05c98747c6d080':
  [EB1-1962] simplified logic
  [EB1-1963] replaced custom linked list implementation with java's
  [EB1-2008] added tests for 206 Partial Responses
  [EB1-1962] fixed merge error
  [EB1-2008] fixed encoding
  [EB1-2008] added support for icap 206 responses
  Fixed logic operator from bit-wise and to logical and
  Unset preview header on early terminated previews (simplified version of GlobalVelocity/netty-icap@5dbd992)
  Reset initial decoding state when initial line does not parse
  Fixed spelling in chunk toString methods
  Patch for ReadIcapHeaderState to accommodate malformed ICAP error messages
  Fixed bug in IcapHeaders.removeHeader where removing the last header messed up the head reference
  Improved Preview handling by removing the preview header when the request contains the full, complete body
  Fixed issue where the IcapChunkTrailer was not being checked for early Termination to clear the PREVIEW header
  Added support for 0 length preview. When the PREVIEW header is not valid or does not exist, a value of -1 is set instead of 0, as it is a valid preview value. Also, needed to remove the PREVIEW header when the message has a null-body as the PREVIEW is set to 0 in this case.
  Removed the dependency on org.jboss.netty.util.internal.StringUtil. It is not exported by the OSGI bundle and it is only used for the End of Line character
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant