Skip to content

Conversation

@vkostyukov
Copy link
Contributor

This PR updates Finagle to 6.36 and also makes some misc changes:

  1. Make DateTimeFormat a thread-local since it's not thread-safe and it's not fair to share it
  2. Use one-jar plugin to run the program instead of reusing the sbt's JVM instance

Please let me know if there anything I can do/change to make this PR make it to the Round 13.

val dateFormat: DateFormat = new SimpleDateFormat("E, dd MMM yyyy HH:mm:ss z")

val dateFormat: ThreadLocal[DateFormat] = new ThreadLocal[DateFormat] {
override def initialValue: DateFormat = new SimpleDateFormat("E, dd MMM yyyy HH:mm:ss z")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The format here should be "E, dd MMM yyyy HH:mm:ss 'GMT'". See the issue we hit and the pull-request here: twitter/finatra#312

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @cacoco! I updated the PR to use request API req.date = ??? instead that uses the right date format.

@knewmanTE
Copy link
Contributor

@vkostyukov looks good! we'll do our best to get this into round 13!

@vkostyukov
Copy link
Contributor Author

Thank you, @knewmanTE!

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.

4 participants