puma 4.3.3 → 5.3.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of puma might be problematic. Click here for more details.

Files changed (84) hide show
  1. checksums.yaml +4 -4
  2. data/History.md +1348 -519
  3. data/LICENSE +23 -20
  4. data/README.md +74 -31
  5. data/bin/puma-wild +3 -9
  6. data/docs/architecture.md +24 -20
  7. data/docs/compile_options.md +19 -0
  8. data/docs/deployment.md +15 -10
  9. data/docs/fork_worker.md +33 -0
  10. data/docs/jungle/README.md +9 -0
  11. data/{tools → docs}/jungle/rc.d/README.md +1 -1
  12. data/{tools → docs}/jungle/rc.d/puma +2 -2
  13. data/{tools → docs}/jungle/rc.d/puma.conf +0 -0
  14. data/docs/kubernetes.md +66 -0
  15. data/docs/nginx.md +1 -1
  16. data/docs/plugins.md +2 -2
  17. data/docs/rails_dev_mode.md +29 -0
  18. data/docs/restart.md +46 -23
  19. data/docs/signals.md +7 -6
  20. data/docs/stats.md +142 -0
  21. data/docs/systemd.md +27 -67
  22. data/ext/puma_http11/PumaHttp11Service.java +2 -4
  23. data/ext/puma_http11/ext_help.h +1 -1
  24. data/ext/puma_http11/extconf.rb +22 -8
  25. data/ext/puma_http11/http11_parser.c +48 -48
  26. data/ext/puma_http11/http11_parser.h +1 -1
  27. data/ext/puma_http11/http11_parser.java.rl +1 -1
  28. data/ext/puma_http11/http11_parser.rl +4 -2
  29. data/ext/puma_http11/mini_ssl.c +211 -118
  30. data/ext/puma_http11/no_ssl/PumaHttp11Service.java +15 -0
  31. data/ext/puma_http11/org/jruby/puma/Http11.java +3 -3
  32. data/ext/puma_http11/org/jruby/puma/Http11Parser.java +5 -7
  33. data/ext/puma_http11/org/jruby/puma/MiniSSL.java +77 -18
  34. data/ext/puma_http11/puma_http11.c +32 -50
  35. data/lib/puma.rb +46 -0
  36. data/lib/puma/app/status.rb +48 -35
  37. data/lib/puma/binder.rb +177 -103
  38. data/lib/puma/cli.rb +11 -15
  39. data/lib/puma/client.rb +83 -76
  40. data/lib/puma/cluster.rb +184 -198
  41. data/lib/puma/cluster/worker.rb +183 -0
  42. data/lib/puma/cluster/worker_handle.rb +90 -0
  43. data/lib/puma/commonlogger.rb +2 -2
  44. data/lib/puma/configuration.rb +55 -49
  45. data/lib/puma/const.rb +13 -5
  46. data/lib/puma/control_cli.rb +93 -76
  47. data/lib/puma/detect.rb +24 -3
  48. data/lib/puma/dsl.rb +266 -92
  49. data/lib/puma/error_logger.rb +104 -0
  50. data/lib/puma/events.rb +55 -34
  51. data/lib/puma/io_buffer.rb +9 -2
  52. data/lib/puma/jruby_restart.rb +0 -58
  53. data/lib/puma/json.rb +96 -0
  54. data/lib/puma/launcher.rb +113 -45
  55. data/lib/puma/minissl.rb +114 -33
  56. data/lib/puma/minissl/context_builder.rb +6 -3
  57. data/lib/puma/null_io.rb +13 -1
  58. data/lib/puma/plugin.rb +1 -10
  59. data/lib/puma/queue_close.rb +26 -0
  60. data/lib/puma/rack/builder.rb +0 -4
  61. data/lib/puma/reactor.rb +85 -369
  62. data/lib/puma/request.rb +467 -0
  63. data/lib/puma/runner.rb +29 -58
  64. data/lib/puma/server.rb +267 -698
  65. data/lib/puma/single.rb +9 -65
  66. data/lib/puma/state_file.rb +8 -3
  67. data/lib/puma/systemd.rb +46 -0
  68. data/lib/puma/thread_pool.rb +119 -53
  69. data/lib/puma/util.rb +12 -0
  70. data/lib/rack/handler/puma.rb +2 -3
  71. data/tools/{docker/Dockerfile → Dockerfile} +0 -0
  72. metadata +28 -24
  73. data/docs/tcp_mode.md +0 -96
  74. data/ext/puma_http11/io_buffer.c +0 -155
  75. data/ext/puma_http11/org/jruby/puma/IOBuffer.java +0 -72
  76. data/lib/puma/accept_nonblock.rb +0 -29
  77. data/lib/puma/tcp_logger.rb +0 -41
  78. data/tools/jungle/README.md +0 -19
  79. data/tools/jungle/init.d/README.md +0 -61
  80. data/tools/jungle/init.d/puma +0 -421
  81. data/tools/jungle/init.d/run-puma +0 -18
  82. data/tools/jungle/upstart/README.md +0 -61
  83. data/tools/jungle/upstart/puma-manager.conf +0 -31
  84. data/tools/jungle/upstart/puma.conf +0 -69
data/docs/systemd.md CHANGED
@@ -8,14 +8,12 @@ useful features for running Puma in production.
8
8
  ## Service Configuration
9
9
 
10
10
  Below is a sample puma.service configuration file for systemd, which
11
- can be copied or symlinked to /etc/systemd/system/puma.service, or if
11
+ can be copied or symlinked to `/etc/systemd/system/puma.service`, or if
12
12
  desired, using an application or instance specific name.
13
13
 
14
14
  Note that this uses the systemd preferred "simple" type where the
15
15
  start command remains running in the foreground (does not fork and
16
- exit). See also, the
17
- [Alternative Forking Configuration](#alternative-forking-configuration)
18
- below.
16
+ exit).
19
17
 
20
18
  ~~~~ ini
21
19
  [Unit]
@@ -26,8 +24,15 @@ After=network.target
26
24
  # Requires=puma.socket
27
25
 
28
26
  [Service]
29
- # Foreground process (do not use --daemon in ExecStart or config.rb)
30
- Type=simple
27
+ # Puma supports systemd's `Type=notify` and watchdog service
28
+ # monitoring, if the [sd_notify](https://github.com/agis/ruby-sdnotify) gem is installed,
29
+ # as of Puma 5.1 or later.
30
+ # On earlier versions of Puma or JRuby, change this to `Type=simple` and remove
31
+ # the `WatchdogSec` line.
32
+ Type=notify
33
+
34
+ # If your Puma process locks up, systemd's watchdog will restart it within seconds.
35
+ WatchdogSec=10
31
36
 
32
37
  # Preferably configure a non-privileged user
33
38
  # User=
@@ -78,7 +83,7 @@ pass the `--keep-file-descriptors` flag. `bundle exec` can be avoided by using a
78
83
  `puma` executable generated by `bundle binstubs puma`. This is tracked in
79
84
  [#1499].
80
85
 
81
- **Note:** Socket activation doesn't currently work on jruby. This is
86
+ **Note:** Socket activation doesn't currently work on JRuby. This is
82
87
  tracked in [#1367].
83
88
 
84
89
  To use socket activation, configure one or more `ListenStream` sockets
@@ -124,6 +129,21 @@ Puma will detect the release path socket as different than the one provided by
124
129
  systemd and attempt to bind it again, resulting in the exception
125
130
  `There is already a server bound to:`.
126
131
 
132
+ ### Binding
133
+
134
+ By default you need to configure puma to have binds matching with all
135
+ ListenStream statements. Any mismatched systemd ListenStreams will be closed by
136
+ puma.
137
+
138
+ To automatically bind to all activated sockets, the option
139
+ `--bind-to-activated-sockets` can be used. This matches the config DSL
140
+ `bind_to_activated_sockets` statement. This will cause puma to create a bind
141
+ automatically for any activated socket. When systemd socket activation is not
142
+ enabled, this option does nothing.
143
+
144
+ This also accepts an optional argument `only` (DSL: `'only'`) to discard any
145
+ binds that's not socket activated.
146
+
127
147
  ## Usage
128
148
 
129
149
  Without socket activation, use `systemctl` as root (e.g. via `sudo`) as
@@ -209,66 +229,6 @@ Apr 07 08:40:19 hx puma[28320]: * Activated ssl://0.0.0.0:9234?key=key.pem&cert=
209
229
  Apr 07 08:40:19 hx puma[28320]: Use Ctrl-C to stop
210
230
  ~~~~
211
231
 
212
- ## Alternative Forking Configuration
213
-
214
- Other systems/tools might expect or need puma to be run as a
215
- "traditional" forking server, for example so that the `pumactl`
216
- command can be used directly and outside of systemd for
217
- stop/start/restart. This use case is incompatible with systemd socket
218
- activation, so it should not be configured. Below is an alternative
219
- puma.service config sample, using `Type=forking` and the `--daemon`
220
- flag in `ExecStart`. Here systemd is playing a role more equivalent to
221
- SysV init.d, where it is responsible for starting Puma on boot
222
- (multi-user.target) and stopping it on shutdown, but is not performing
223
- continuous restarts. Therefore running Puma in cluster mode, where the
224
- master can restart workers, is highly recommended. See the systemd
225
- [Restart] directive for details.
226
-
227
- ~~~~ ini
228
- [Unit]
229
- Description=Puma HTTP Forking Server
230
- After=network.target
231
-
232
- [Service]
233
- # Background process configuration (use with --daemon in ExecStart)
234
- Type=forking
235
-
236
- # Preferably configure a non-privileged user
237
- # User=
238
-
239
- # The path to the puma application root
240
- # Also replace the "<WD>" place holders below with this path.
241
- WorkingDirectory=
242
-
243
- # The command to start Puma
244
- # (replace "<WD>" below)
245
- ExecStart=bundle exec puma -C <WD>/shared/puma.rb --daemon
246
-
247
- # The command to stop Puma
248
- # (replace "<WD>" below)
249
- ExecStop=bundle exec pumactl -S <WD>/shared/tmp/pids/puma.state stop
250
-
251
- # Path to PID file so that systemd knows which is the master process
252
- PIDFile=<WD>/shared/tmp/pids/puma.pid
253
-
254
- # Should systemd restart puma?
255
- # Use "no" (the default) to ensure no interference when using
256
- # stop/start/restart via `pumactl`. The "on-failure" setting might
257
- # work better for this purpose, but you must test it.
258
- # Use "always" if only `systemctl` is used for start/stop/restart, and
259
- # reconsider if you actually need the forking config.
260
- Restart=no
261
-
262
- # `puma_ctl restart` wouldn't work without this. It's because `pumactl`
263
- # changes PID on restart and systemd stops the service afterwards
264
- # because of the PID change. This option prevents stopping after PID
265
- # change.
266
- RemainAfterExit=yes
267
-
268
- [Install]
269
- WantedBy=multi-user.target
270
- ~~~~
271
-
272
232
  ### capistrano3-puma
273
233
 
274
234
  By default,
@@ -1,18 +1,16 @@
1
1
  package puma;
2
2
 
3
3
  import java.io.IOException;
4
-
4
+
5
5
  import org.jruby.Ruby;
6
6
  import org.jruby.runtime.load.BasicLibraryService;
7
7
 
8
8
  import org.jruby.puma.Http11;
9
- import org.jruby.puma.IOBuffer;
10
9
  import org.jruby.puma.MiniSSL;
11
10
 
12
- public class PumaHttp11Service implements BasicLibraryService {
11
+ public class PumaHttp11Service implements BasicLibraryService {
13
12
  public boolean basicLoad(final Ruby runtime) throws IOException {
14
13
  Http11.createHttp11(runtime);
15
- IOBuffer.createIOBuffer(runtime);
16
14
  MiniSSL.createMiniSSL(runtime);
17
15
  return true;
18
16
  }
@@ -2,7 +2,7 @@
2
2
  #define ext_help_h
3
3
 
4
4
  #define RAISE_NOT_NULL(T) if(T == NULL) rb_raise(rb_eArgError, "%s", "NULL found for " # T " when shouldn't be.");
5
- #define DATA_GET(from,type,name) Data_Get_Struct(from,type,name); RAISE_NOT_NULL(name);
5
+ #define DATA_GET(from,type,data_type,name) TypedData_Get_Struct(from,type,data_type,name); RAISE_NOT_NULL(name);
6
6
  #define REQUIRE_TYPE(V, T) if(TYPE(V) != T) rb_raise(rb_eTypeError, "%s", "Wrong argument type for " # V " required " # T);
7
7
  #define ARRAY_SIZE(x) (sizeof(x)/sizeof(x[0]))
8
8
 
@@ -1,9 +1,10 @@
1
1
  require 'mkmf'
2
2
 
3
3
  dir_config("puma_http11")
4
- if RUBY_PLATFORM[/mingw32/]
5
- append_cflags '-D_FORTIFY_SOURCE=2'
6
- append_ldflags '-fstack-protector'
4
+
5
+ if $mingw && RUBY_VERSION >= '2.4'
6
+ append_cflags '-fstack-protector-strong -D_FORTIFY_SOURCE=2'
7
+ append_ldflags '-fstack-protector-strong -l:libssp.a'
7
8
  have_library 'ssp'
8
9
  end
9
10
 
@@ -16,12 +17,25 @@ unless ENV["DISABLE_SSL"]
16
17
  have_header "openssl/bio.h"
17
18
 
18
19
  # below is yes for 1.0.2 & later
19
- have_func "DTLS_method" , "openssl/ssl.h"
20
+ have_func "DTLS_method" , "openssl/ssl.h"
21
+
22
+ # below are yes for 1.1.0 & later
23
+ have_func "TLS_server_method" , "openssl/ssl.h"
24
+ have_func "SSL_CTX_set_min_proto_version(NULL, 0)", "openssl/ssl.h"
25
+
26
+ have_func "X509_STORE_up_ref"
27
+ have_func("SSL_CTX_set_ecdh_auto(NULL, 0)", "openssl/ssl.h")
28
+ end
29
+ end
20
30
 
21
- # below are yes for 1.1.0 & later, may need to check func rather than macro
22
- # with versions after 1.1.1
23
- have_func "TLS_server_method" , "openssl/ssl.h"
24
- have_macro "SSL_CTX_set_min_proto_version", "openssl/ssl.h"
31
+ if ENV["MAKE_WARNINGS_INTO_ERRORS"]
32
+ # Make all warnings into errors
33
+ # Except `implicit-fallthrough` since most failures comes from ragel state machine generated code
34
+ if respond_to? :append_cflags
35
+ append_cflags config_string 'WERRORFLAG'
36
+ append_cflags '-Wno-implicit-fallthrough'
37
+ else
38
+ $CFLAGS += ' ' << (config_string 'WERRORFLAG') << ' -Wno-implicit-fallthrough'
25
39
  end
26
40
  end
27
41
 
@@ -14,12 +14,14 @@
14
14
 
15
15
  /*
16
16
  * capitalizes all lower-case ASCII characters,
17
- * converts dashes to underscores.
17
+ * converts dashes to underscores, and underscores to commas.
18
18
  */
19
19
  static void snake_upcase_char(char *c)
20
20
  {
21
21
  if (*c >= 'a' && *c <= 'z')
22
22
  *c &= ~0x20;
23
+ else if (*c == '_')
24
+ *c = ',';
23
25
  else if (*c == '-')
24
26
  *c = '_';
25
27
  }
@@ -31,20 +33,18 @@ static void snake_upcase_char(char *c)
31
33
  /** Machine **/
32
34
 
33
35
 
34
- #line 79 "ext/puma_http11/http11_parser.rl"
36
+ #line 81 "ext/puma_http11/http11_parser.rl"
35
37
 
36
38
 
37
39
  /** Data **/
38
40
 
39
- #line 40 "ext/puma_http11/http11_parser.c"
41
+ #line 42 "ext/puma_http11/http11_parser.c"
40
42
  static const int puma_parser_start = 1;
41
43
  static const int puma_parser_first_final = 46;
42
44
  static const int puma_parser_error = 0;
43
45
 
44
- static const int puma_parser_en_main = 1;
45
46
 
46
-
47
- #line 83 "ext/puma_http11/http11_parser.rl"
47
+ #line 85 "ext/puma_http11/http11_parser.rl"
48
48
 
49
49
  int puma_parser_init(puma_parser *parser) {
50
50
  int cs = 0;
@@ -54,7 +54,7 @@ int puma_parser_init(puma_parser *parser) {
54
54
  cs = puma_parser_start;
55
55
  }
56
56
 
57
- #line 87 "ext/puma_http11/http11_parser.rl"
57
+ #line 89 "ext/puma_http11/http11_parser.rl"
58
58
  parser->cs = cs;
59
59
  parser->body_start = 0;
60
60
  parser->content_len = 0;
@@ -107,7 +107,7 @@ st0:
107
107
  cs = 0;
108
108
  goto _out;
109
109
  tr0:
110
- #line 35 "ext/puma_http11/http11_parser.rl"
110
+ #line 37 "ext/puma_http11/http11_parser.rl"
111
111
  { MARK(mark, p); }
112
112
  goto st2;
113
113
  st2:
@@ -130,7 +130,7 @@ case 2:
130
130
  goto st27;
131
131
  goto st0;
132
132
  tr2:
133
- #line 48 "ext/puma_http11/http11_parser.rl"
133
+ #line 50 "ext/puma_http11/http11_parser.rl"
134
134
  {
135
135
  parser->request_method(parser, PTR_TO(mark), LEN(mark, p));
136
136
  }
@@ -156,7 +156,7 @@ case 3:
156
156
  goto tr5;
157
157
  goto st0;
158
158
  tr4:
159
- #line 35 "ext/puma_http11/http11_parser.rl"
159
+ #line 37 "ext/puma_http11/http11_parser.rl"
160
160
  { MARK(mark, p); }
161
161
  goto st4;
162
162
  st4:
@@ -170,53 +170,53 @@ case 4:
170
170
  }
171
171
  goto st0;
172
172
  tr8:
173
- #line 51 "ext/puma_http11/http11_parser.rl"
173
+ #line 53 "ext/puma_http11/http11_parser.rl"
174
174
  {
175
175
  parser->request_uri(parser, PTR_TO(mark), LEN(mark, p));
176
176
  }
177
177
  goto st5;
178
178
  tr31:
179
- #line 35 "ext/puma_http11/http11_parser.rl"
179
+ #line 37 "ext/puma_http11/http11_parser.rl"
180
180
  { MARK(mark, p); }
181
- #line 54 "ext/puma_http11/http11_parser.rl"
181
+ #line 56 "ext/puma_http11/http11_parser.rl"
182
182
  {
183
183
  parser->fragment(parser, PTR_TO(mark), LEN(mark, p));
184
184
  }
185
185
  goto st5;
186
186
  tr33:
187
- #line 54 "ext/puma_http11/http11_parser.rl"
187
+ #line 56 "ext/puma_http11/http11_parser.rl"
188
188
  {
189
189
  parser->fragment(parser, PTR_TO(mark), LEN(mark, p));
190
190
  }
191
191
  goto st5;
192
192
  tr37:
193
- #line 67 "ext/puma_http11/http11_parser.rl"
193
+ #line 69 "ext/puma_http11/http11_parser.rl"
194
194
  {
195
195
  parser->request_path(parser, PTR_TO(mark), LEN(mark,p));
196
196
  }
197
- #line 51 "ext/puma_http11/http11_parser.rl"
197
+ #line 53 "ext/puma_http11/http11_parser.rl"
198
198
  {
199
199
  parser->request_uri(parser, PTR_TO(mark), LEN(mark, p));
200
200
  }
201
201
  goto st5;
202
202
  tr41:
203
- #line 58 "ext/puma_http11/http11_parser.rl"
203
+ #line 60 "ext/puma_http11/http11_parser.rl"
204
204
  { MARK(query_start, p); }
205
- #line 59 "ext/puma_http11/http11_parser.rl"
205
+ #line 61 "ext/puma_http11/http11_parser.rl"
206
206
  {
207
207
  parser->query_string(parser, PTR_TO(query_start), LEN(query_start, p));
208
208
  }
209
- #line 51 "ext/puma_http11/http11_parser.rl"
209
+ #line 53 "ext/puma_http11/http11_parser.rl"
210
210
  {
211
211
  parser->request_uri(parser, PTR_TO(mark), LEN(mark, p));
212
212
  }
213
213
  goto st5;
214
214
  tr44:
215
- #line 59 "ext/puma_http11/http11_parser.rl"
215
+ #line 61 "ext/puma_http11/http11_parser.rl"
216
216
  {
217
217
  parser->query_string(parser, PTR_TO(query_start), LEN(query_start, p));
218
218
  }
219
- #line 51 "ext/puma_http11/http11_parser.rl"
219
+ #line 53 "ext/puma_http11/http11_parser.rl"
220
220
  {
221
221
  parser->request_uri(parser, PTR_TO(mark), LEN(mark, p));
222
222
  }
@@ -230,7 +230,7 @@ case 5:
230
230
  goto tr10;
231
231
  goto st0;
232
232
  tr10:
233
- #line 35 "ext/puma_http11/http11_parser.rl"
233
+ #line 37 "ext/puma_http11/http11_parser.rl"
234
234
  { MARK(mark, p); }
235
235
  goto st6;
236
236
  st6:
@@ -295,21 +295,21 @@ case 13:
295
295
  goto st13;
296
296
  goto st0;
297
297
  tr18:
298
- #line 63 "ext/puma_http11/http11_parser.rl"
298
+ #line 65 "ext/puma_http11/http11_parser.rl"
299
299
  {
300
300
  parser->http_version(parser, PTR_TO(mark), LEN(mark, p));
301
301
  }
302
302
  goto st14;
303
303
  tr26:
304
- #line 44 "ext/puma_http11/http11_parser.rl"
304
+ #line 46 "ext/puma_http11/http11_parser.rl"
305
305
  { MARK(mark, p); }
306
- #line 45 "ext/puma_http11/http11_parser.rl"
306
+ #line 47 "ext/puma_http11/http11_parser.rl"
307
307
  {
308
308
  parser->http_field(parser, PTR_TO(field_start), parser->field_len, PTR_TO(mark), LEN(mark, p));
309
309
  }
310
310
  goto st14;
311
311
  tr29:
312
- #line 45 "ext/puma_http11/http11_parser.rl"
312
+ #line 47 "ext/puma_http11/http11_parser.rl"
313
313
  {
314
314
  parser->http_field(parser, PTR_TO(field_start), parser->field_len, PTR_TO(mark), LEN(mark, p));
315
315
  }
@@ -358,7 +358,7 @@ case 16:
358
358
  goto tr22;
359
359
  goto st0;
360
360
  tr22:
361
- #line 71 "ext/puma_http11/http11_parser.rl"
361
+ #line 73 "ext/puma_http11/http11_parser.rl"
362
362
  {
363
363
  parser->body_start = p - buffer + 1;
364
364
  parser->header_done(parser, p + 1, pe - p - 1);
@@ -372,13 +372,13 @@ case 46:
372
372
  #line 373 "ext/puma_http11/http11_parser.c"
373
373
  goto st0;
374
374
  tr21:
375
- #line 38 "ext/puma_http11/http11_parser.rl"
375
+ #line 40 "ext/puma_http11/http11_parser.rl"
376
376
  { MARK(field_start, p); }
377
- #line 39 "ext/puma_http11/http11_parser.rl"
377
+ #line 41 "ext/puma_http11/http11_parser.rl"
378
378
  { snake_upcase_char((char *)p); }
379
379
  goto st17;
380
380
  tr23:
381
- #line 39 "ext/puma_http11/http11_parser.rl"
381
+ #line 41 "ext/puma_http11/http11_parser.rl"
382
382
  { snake_upcase_char((char *)p); }
383
383
  goto st17;
384
384
  st17:
@@ -411,13 +411,13 @@ case 17:
411
411
  goto tr23;
412
412
  goto st0;
413
413
  tr24:
414
- #line 40 "ext/puma_http11/http11_parser.rl"
414
+ #line 42 "ext/puma_http11/http11_parser.rl"
415
415
  {
416
416
  parser->field_len = LEN(field_start, p);
417
417
  }
418
418
  goto st18;
419
419
  tr27:
420
- #line 44 "ext/puma_http11/http11_parser.rl"
420
+ #line 46 "ext/puma_http11/http11_parser.rl"
421
421
  { MARK(mark, p); }
422
422
  goto st18;
423
423
  st18:
@@ -431,7 +431,7 @@ case 18:
431
431
  }
432
432
  goto tr25;
433
433
  tr25:
434
- #line 44 "ext/puma_http11/http11_parser.rl"
434
+ #line 46 "ext/puma_http11/http11_parser.rl"
435
435
  { MARK(mark, p); }
436
436
  goto st19;
437
437
  st19:
@@ -443,39 +443,39 @@ case 19:
443
443
  goto tr29;
444
444
  goto st19;
445
445
  tr9:
446
- #line 51 "ext/puma_http11/http11_parser.rl"
446
+ #line 53 "ext/puma_http11/http11_parser.rl"
447
447
  {
448
448
  parser->request_uri(parser, PTR_TO(mark), LEN(mark, p));
449
449
  }
450
450
  goto st20;
451
451
  tr38:
452
- #line 67 "ext/puma_http11/http11_parser.rl"
452
+ #line 69 "ext/puma_http11/http11_parser.rl"
453
453
  {
454
454
  parser->request_path(parser, PTR_TO(mark), LEN(mark,p));
455
455
  }
456
- #line 51 "ext/puma_http11/http11_parser.rl"
456
+ #line 53 "ext/puma_http11/http11_parser.rl"
457
457
  {
458
458
  parser->request_uri(parser, PTR_TO(mark), LEN(mark, p));
459
459
  }
460
460
  goto st20;
461
461
  tr42:
462
- #line 58 "ext/puma_http11/http11_parser.rl"
462
+ #line 60 "ext/puma_http11/http11_parser.rl"
463
463
  { MARK(query_start, p); }
464
- #line 59 "ext/puma_http11/http11_parser.rl"
464
+ #line 61 "ext/puma_http11/http11_parser.rl"
465
465
  {
466
466
  parser->query_string(parser, PTR_TO(query_start), LEN(query_start, p));
467
467
  }
468
- #line 51 "ext/puma_http11/http11_parser.rl"
468
+ #line 53 "ext/puma_http11/http11_parser.rl"
469
469
  {
470
470
  parser->request_uri(parser, PTR_TO(mark), LEN(mark, p));
471
471
  }
472
472
  goto st20;
473
473
  tr45:
474
- #line 59 "ext/puma_http11/http11_parser.rl"
474
+ #line 61 "ext/puma_http11/http11_parser.rl"
475
475
  {
476
476
  parser->query_string(parser, PTR_TO(query_start), LEN(query_start, p));
477
477
  }
478
- #line 51 "ext/puma_http11/http11_parser.rl"
478
+ #line 53 "ext/puma_http11/http11_parser.rl"
479
479
  {
480
480
  parser->request_uri(parser, PTR_TO(mark), LEN(mark, p));
481
481
  }
@@ -498,7 +498,7 @@ case 20:
498
498
  goto st0;
499
499
  goto tr30;
500
500
  tr30:
501
- #line 35 "ext/puma_http11/http11_parser.rl"
501
+ #line 37 "ext/puma_http11/http11_parser.rl"
502
502
  { MARK(mark, p); }
503
503
  goto st21;
504
504
  st21:
@@ -519,7 +519,7 @@ case 21:
519
519
  goto st0;
520
520
  goto st21;
521
521
  tr5:
522
- #line 35 "ext/puma_http11/http11_parser.rl"
522
+ #line 37 "ext/puma_http11/http11_parser.rl"
523
523
  { MARK(mark, p); }
524
524
  goto st22;
525
525
  st22:
@@ -544,7 +544,7 @@ case 22:
544
544
  goto st22;
545
545
  goto st0;
546
546
  tr7:
547
- #line 35 "ext/puma_http11/http11_parser.rl"
547
+ #line 37 "ext/puma_http11/http11_parser.rl"
548
548
  { MARK(mark, p); }
549
549
  goto st23;
550
550
  st23:
@@ -564,7 +564,7 @@ case 23:
564
564
  goto st0;
565
565
  goto st23;
566
566
  tr6:
567
- #line 35 "ext/puma_http11/http11_parser.rl"
567
+ #line 37 "ext/puma_http11/http11_parser.rl"
568
568
  { MARK(mark, p); }
569
569
  goto st24;
570
570
  st24:
@@ -585,7 +585,7 @@ case 24:
585
585
  goto st0;
586
586
  goto st24;
587
587
  tr39:
588
- #line 67 "ext/puma_http11/http11_parser.rl"
588
+ #line 69 "ext/puma_http11/http11_parser.rl"
589
589
  {
590
590
  parser->request_path(parser, PTR_TO(mark), LEN(mark,p));
591
591
  }
@@ -607,7 +607,7 @@ case 25:
607
607
  goto st0;
608
608
  goto tr40;
609
609
  tr40:
610
- #line 58 "ext/puma_http11/http11_parser.rl"
610
+ #line 60 "ext/puma_http11/http11_parser.rl"
611
611
  { MARK(query_start, p); }
612
612
  goto st26;
613
613
  st26:
@@ -1008,7 +1008,7 @@ case 45:
1008
1008
  _out: {}
1009
1009
  }
1010
1010
 
1011
- #line 115 "ext/puma_http11/http11_parser.rl"
1011
+ #line 117 "ext/puma_http11/http11_parser.rl"
1012
1012
 
1013
1013
  if (!puma_parser_has_error(parser))
1014
1014
  parser->cs = cs;