1
0
Fork 0
mirror of https://github.com/puma/puma.git synced 2022-11-09 13:48:40 -05:00
Commit graph

13 commits

Author SHA1 Message Date
Rob Heath
a04fc21a56
Increase max URI path length to 8196, closes #2134 (#2168)
Co-authored-by: Nate Berkopec <nate.berkopec@gmail.com>
2020-03-10 11:39:36 -06:00
Nate Berkopec
4e7df88aa5
More helpful error message for people sending HTTPS to a non-SSL Puma. Closes #986 2020-03-05 15:00:13 -06:00
Nate Berkopec
895722ddc2
Merge branch 'jruby_optz' of https://github.com/headius/puma into headius-jruby_optz 2019-10-07 15:29:57 +02:00
Nate Berkopec
22b135a636
Strip header whitespace. Fix #1890. Code by @matthewd (#2010)
* Strip header whitespace in C

Fix #1890

Co-authored-by: Matthew Draper <matthew@trebex.net>

* Add Java extension to do the same

Co-authored-by: Charles Nutter <headius@headius.com>

* Changelog
2019-10-07 15:23:18 +02:00
Charles Oliver Nutter
46709adcd3
Eliminate callback objects and indirection altogether.
There's only ever one implementation of these, so just call them
directly.
2019-10-05 16:05:35 -05:00
Charles Oliver Nutter
080861c025
Avoid allocating all but one callback.
Seven fewer objects and no eager lookup of the exception class.
2019-10-05 12:42:33 -05:00
Charles Oliver Nutter
c81b0dd3d2
Reduce accesses of runtime, parser by passing through. 2019-10-05 12:33:04 -05:00
Charles Oliver Nutter
bcec82d31a
Various antipattern cleanups.
* Use fastARef/fastASet for hash access to avoid context load.
* Cache most Java strings used to create headers as ByteLists, to
  avoid re-encoding and re-constructing the byte[] and ByteList.
* Load parse buffer once in field handler.
* Eliminate deprecated construction of RaiseException and
  centralize logic.
2019-10-05 11:51:32 -05:00
Evan Phoenix
e1bbb27e93 Fix JRuby parser 2015-11-07 09:14:25 -08:00
Alejandro Martinez Ruiz
800cfeeac3 ext/puma_http11: handle duplicate headers as per RFC for Java ext
The parser stores headers in a Ruby hash table so that when a header
is found twice its value replaces the old one. As per RFC[1] this is
not correct, since duplicated headers should all be considered. In
particular, they are semantically equivalent to a single header with
comma separated values. In this case, we follow existing practice of
joining values with a comma and a single space character.

[1] See RFC2616 section 4.2:
    http://www.w3.org/Protocols/rfc2616/rfc2616-sec4.html#sec4.2
2015-11-06 18:56:56 +01:00
Priyank Chodisetti
139690ecf9 Increase the max URI path length to 2048 chars from 1024 chars 2013-11-10 00:16:30 -08:00
Evan Phoenix
dcffc1b765 Some fixes to the java parser 2011-11-22 13:17:22 -08:00
Charles Oliver Nutter
d692475955 First pass updating JRuby bits for Puma.
* Rename Mongrel to Puma and move files appropriately
* Add HttParser11#body method
* Fix native.rake to not attempt C ext under JRuby
* Mask out all of test_unix_socket.rb under JRuby
2011-11-22 13:43:54 -06:00
Renamed from ext/puma_http11/org/jruby/mongrel/Http11.java (Browse further)