forked from monkey/monkey
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ChangeLog
24225 lines (15792 loc) · 741 KB
/
ChangeLog
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
commit 2ec7636630df1ed405179e66fe7c5dad4b533496
Author: Eduardo Silva <[email protected]>
Date: Fri Aug 7 16:48:18 2015 -0600
server: HTTP: restrict pipeline request as keepalive requests
Signed-off-by: Eduardo Silva <[email protected]>
commit 4723dac02f6d0dc62c5985833b286c2ed3817e3b
Author: Eduardo Silva <[email protected]>
Date: Fri Aug 7 12:14:57 2015 -0600
server: HTTP parser: make parser_more() check static inline
Signed-off-by: Eduardo Silva <[email protected]>
commit 49760cddbc41c5c8147fb3e0201943a296c5df71
Author: Eduardo Silva <[email protected]>
Date: Fri Aug 7 12:14:23 2015 -0600
server: scheduler: let protocol handlers decide if they want to process more data upon channel_done
Signed-off-by: Eduardo Silva <[email protected]>
commit 2e2fdb5117f7a33a2b872fa9805b49e53d54c7e9
Author: Eduardo Silva <[email protected]>
Date: Fri Aug 7 12:13:41 2015 -0600
server: HTTP: reset errno for connection problems and re-enable pipeline support
Signed-off-by: Eduardo Silva <[email protected]>
commit 5a64dff41dd030864e4c2c03b0da43e9e69e1c8a
Author: Eduardo Silva <[email protected]>
Date: Fri Aug 7 11:29:11 2015 -0600
server: HTTP parser: general improvements
Signed-off-by: Eduardo Silva <[email protected]>
commit 04c32ed5753a1c4b43308e7e379d19f26e44500c
Author: Eduardo Silva <[email protected]>
Date: Thu Aug 6 14:32:39 2015 -0600
server: HTTP: remove unused code
Signed-off-by: Eduardo Silva <[email protected]>
commit 697dd3ac80ea56b60c7b3d8d5a8f4566d1878935
Author: Eduardo Silva <[email protected]>
Date: Wed Aug 5 13:27:09 2015 -0600
HTML: intro update
Signed-off-by: Eduardo Silva <[email protected]>
commit 8ff57ef1308cfc07a3babdc8bcb9c57d8e9b1d85
Author: Eduardo Silva <[email protected]>
Date: Wed Aug 5 13:11:59 2015 -0600
QA: update scripts to new htdocs content
Signed-off-by: Eduardo Silva <[email protected]>
commit 08ebcfe0e9fe10cd6165bdde7f16216ab4d806cf
Author: Eduardo Silva <[email protected]>
Date: Wed Aug 5 11:05:44 2015 -0600
server: scheduler: invalidate scheduler mode when initializing
Signed-off-by: Eduardo Silva <[email protected]>
commit 03a79f05027adda286bc4d51cdfc7c560ff07f0b
Author: Eduardo Silva <[email protected]>
Date: Wed Aug 5 10:53:50 2015 -0600
Doc: remove draft doc
Signed-off-by: Eduardo Silva <[email protected]>
commit 90641dd3ab239f0e80d633a1f106955d4aecb3a1
Author: Eduardo Silva <[email protected]>
Date: Wed Aug 5 10:27:24 2015 -0600
Build: new option to use mbedtls shared lib (installed somewhere)
Signed-off-by: Eduardo Silva <[email protected]>
commit 57eb2f6363db95f07b1e5c3179e525bd642d8b76
Author: Eduardo Silva <[email protected]>
Date: Wed Aug 5 09:53:21 2015 -0600
Build: configure: fix banner
Signed-off-by: Eduardo Silva <[email protected]>
commit 125709c0a104fa1c17a31d7f41e63e8f0071afd7
Author: Eduardo Silva <[email protected]>
Date: Wed Aug 5 09:18:32 2015 -0600
server: scheduler: validate if channel is busy on event_write
Signed-off-by: Eduardo Silva <[email protected]>
commit 5517c83c4089eca84b7051fd7f24c391ac7dc584
Author: Eduardo Silva <[email protected]>
Date: Wed Aug 5 09:14:02 2015 -0600
server: stream: fix trace message when consuming bytes
Signed-off-by: Eduardo Silva <[email protected]>
commit 0e5b14e0a20428e7555156e8ef201223ebca410c
Author: Eduardo Silva <[email protected]>
Date: Wed Aug 5 07:22:15 2015 -0600
server: validate listner list head when exiting
Signed-off-by: Eduardo Silva <[email protected]>
commit 71579c4e83488a20d8afc3bb4e529f2f76917127
Author: Eduardo Silva <[email protected]>
Date: Wed Aug 5 06:40:23 2015 -0600
Build: make sure to generate 'modules' for OSX instead of shared lib
Signed-off-by: Eduardo Silva <[email protected]>
commit 2d4fd2d01338f2b933d010f5c12a6bd223b84c9e
Author: Eduardo Silva <[email protected]>
Date: Wed Aug 5 06:14:09 2015 -0600
Deps: add mbedtls sources as a dependency for TLS plugin
Signed-off-by: Eduardo Silva <[email protected]>
commit 012f1abccad3128b000d8c1b150376e1ddff9778
Author: Eduardo Silva <[email protected]>
Date: Tue Aug 4 14:21:53 2015 -0600
bin: signals: restore uid/guid upon exit
Signed-off-by: Eduardo Silva <[email protected]>
commit 338e595c7b9281172fa71c7acba0099a1873b561
Author: Eduardo Silva <[email protected]>
Date: Tue Aug 4 14:06:57 2015 -0600
server: scheduler: abort on listener problem
Signed-off-by: Eduardo Silva <[email protected]>
commit c0932895310200aa637cd0c6ecbec1a0e4097d64
Author: Eduardo Silva <[email protected]>
Date: Tue Aug 4 14:06:40 2015 -0600
server: scheduler: if listener fails, return NULL
Signed-off-by: Eduardo Silva <[email protected]>
commit e68ccfd99590d873e95d8c639d964ee3486fee82
Author: Eduardo Silva <[email protected]>
Date: Tue Aug 4 14:06:14 2015 -0600
server: socket: return error value if cannot bind
Signed-off-by: Eduardo Silva <[email protected]>
commit 8100ed24a1b22c2da29ead8d84abdecb71e8773e
Author: Eduardo Silva <[email protected]>
Date: Tue Aug 4 12:36:54 2015 -0600
Build: restore 'bash' for configure script
Signed-off-by: Eduardo Silva <[email protected]>
commit 4b052a302101e81547f5f29d93ab5ee6f57dfd71
Author: Eduardo Silva <[email protected]>
Date: Tue Aug 4 12:03:14 2015 -0600
server: stream: fix trace message for 32 bits platforms
Signed-off-by: Eduardo Silva <[email protected]>
commit f93cb2d173dbace2c21a5ed888fa903e9094fbe9
Author: Eduardo Silva <[email protected]>
Date: Sun Aug 2 20:57:00 2015 -0600
HTML: add CMakeLists.txt file for content installation
Signed-off-by: Eduardo Silva <[email protected]>
commit 69276b66028e2c31cffa91419846ed4f83dc34d7
Author: Eduardo Silva <[email protected]>
Date: Sun Aug 2 20:33:40 2015 -0600
HTML: update homepage with new template and branding
Signed-off-by: Eduardo Silva <[email protected]>
commit 8bfffd1f511d49083c658203809f33ead6a6763d
Author: Eduardo Silva <[email protected]>
Date: Sun Aug 2 05:53:55 2015 -0600
Plugins: logger: do not use mk_libc_error from plugins
Signed-off-by: Eduardo Silva <[email protected]>
commit 35169f869f46bd30ccc04533f0dd6c702fd17245
Author: Eduardo Silva <[email protected]>
Date: Sun Aug 2 05:50:09 2015 -0600
server: plugin: remove unused function
Signed-off-by: Eduardo Silva <[email protected]>
commit e9982e355014f21c50a5712b83b841543f6a3d02
Author: Eduardo Silva <[email protected]>
Date: Sun Aug 2 05:48:43 2015 -0600
mk_core: file: change data type for size field
Signed-off-by: Eduardo Silva <[email protected]>
commit 467471fcf80a28d27c78a3c66655bb3443946e09
Author: Eduardo Silva <[email protected]>
Date: Sat Aug 1 18:41:35 2015 -0600
Plugins: fastcgi: fix reference to channel_write
Signed-off-by: Eduardo Silva <[email protected]>
commit 7c0242a3aeed802fdeac6b626b6775700d689fb5
Author: Eduardo Silva <[email protected]>
Date: Sat Aug 1 18:38:41 2015 -0600
Plugins: cgi: fix reference to TLS
Signed-off-by: Eduardo Silva <[email protected]>
commit 55ac31218959d57fc3fdf3906595df6b97bcf26b
Author: Eduardo Silva <[email protected]>
Date: Fri Jul 31 15:27:50 2015 -0600
Plugins: tls: functional with mbedtls-2.0
Signed-off-by: Eduardo Silva <[email protected]>
commit 07b811096b795ff87cc905be0bb113190c2a69ab
Author: Eduardo Silva <[email protected]>
Date: Fri Jul 31 11:14:02 2015 -0600
server: scheduler: on read error, validate EAGAIN case
Signed-off-by: Eduardo Silva <[email protected]>
commit 2f5639ef94cb106fbdd714644448c09b5d9e41ac
Author: Eduardo Silva <[email protected]>
Date: Thu Jul 30 15:37:45 2015 -0600
server: HTTP: fix LF catch limit
Signed-off-by: Eduardo Silva <[email protected]>
commit d254c61e209aaaf9e1d10a175053e2be3a23cc80
Author: Eduardo Silva <[email protected]>
Date: Mon Jul 27 23:43:21 2015 -0600
Plugins: auth: mk_passwd: validate when dumping info (CID 1245666)
Signed-off-by: Eduardo Silva <[email protected]>
commit 2f0b50123c16885f91f72b1737792fa170e87a43
Author: Eduardo Silva <[email protected]>
Date: Mon Jul 27 23:40:55 2015 -0600
server: http: fix error page leak with HEAD method (CID 1299283)
Signed-off-by: Eduardo Silva <[email protected]>
commit d258adcbee6011ad9ba13382a6313587c0d85376
Author: Eduardo Silva <[email protected]>
Date: Mon Jul 27 23:30:28 2015 -0600
server: http: validate return value of resource check (CID 1245652)
Signed-off-by: Eduardo Silva <[email protected]>
commit 49b5e03de046e4105932d43be026b81d5cdbbcca
Author: Eduardo Silva <[email protected]>
Date: Mon Jul 27 23:28:31 2015 -0600
server: vhost: do not leak file descriptor (CID 1245664)
Signed-off-by: Eduardo Silva <[email protected]>
commit 97f5f9a5adaae23ce8275028f24cefaec39e2f5d
Author: Eduardo Silva <[email protected]>
Date: Mon Jul 27 23:27:27 2015 -0600
server: http: on status error, validate content length against method
Signed-off-by: Eduardo Silva <[email protected]>
commit 6d81d929643092ece4a53562a1070b503c4f9676
Author: Eduardo Silva <[email protected]>
Date: Mon Jul 27 23:22:40 2015 -0600
server: config: do not override list of values (CID 1299286)
Signed-off-by: Eduardo Silva <[email protected]>
commit 737d3b1b9cd9ccad715b83457694481153797177
Author: Eduardo Silva <[email protected]>
Date: Mon Jul 27 23:09:19 2015 -0600
server: make sure timeout_fd is valid before close it
Signed-off-by: Eduardo Silva <[email protected]>
commit 311db001a3087ac20f2e9df0761a5c71678d7dc6
Author: Eduardo Silva <[email protected]>
Date: Mon Jul 27 23:08:22 2015 -0600
Plugins: logger: fix unitialized value (CID 1313320)
Signed-off-by: Eduardo Silva <[email protected]>
commit 91b4107f6986cec1fa1bf6da60db2556e322c9dd
Author: Eduardo Silva <[email protected]>
Date: Mon Jul 27 23:01:23 2015 -0600
Plugins: TLS: move API for mbedtls 2.0 (not functional yet)
Signed-off-by: Eduardo Silva <[email protected]>
commit 37bb5e1919073b0f44953105cfa2497419e81e9e
Author: Eduardo Silva <[email protected]>
Date: Mon Jul 27 19:47:47 2015 -0600
Plugins: mandril: adapt callbacks to new API
Signed-off-by: Eduardo Silva <[email protected]>
commit 6b77fbd253ee4e76512a9eb1b7623bd0c60a2a4d
Author: Eduardo Silva <[email protected]>
Date: Mon Jul 27 19:47:25 2015 -0600
server: scheduler: do not print out msg if connection was block by a plugin
Signed-off-by: Eduardo Silva <[email protected]>
commit eb632b4240876a534a35f7e8bfa3465cc4a934c2
Author: Eduardo Silva <[email protected]>
Date: Mon Jul 27 18:46:51 2015 -0600
server: on exit remove listeners
Signed-off-by: Eduardo Silva <[email protected]>
commit 6365f40ff244c4bbce5dac5b6c8e2af46d2df892
Author: Eduardo Silva <[email protected]>
Date: Mon Jul 27 17:51:49 2015 -0600
Plugins: logger: fix pthread_cache initialization and get rid of the evil _mkp_data
Signed-off-by: Eduardo Silva <[email protected]>
commit 55eb5a63ce21a0e9802ab2a91d161426422b140b
Author: Eduardo Silva <[email protected]>
Date: Mon Jul 27 15:59:39 2015 -0600
Plugins: logger: adapt to new API
Signed-off-by: Eduardo Silva <[email protected]>
commit 0a9e696d9882042de07cc4752c9a4533ccf598e2
Author: Eduardo Silva <[email protected]>
Date: Mon Jul 27 15:58:40 2015 -0600
server: http_parser: fix pointer protocol length
Signed-off-by: Eduardo Silva <[email protected]>
commit 264c6f488d8d237e24b8f4bf7e8f2299d184238a
Author: Eduardo Silva <[email protected]>
Date: Mon Jul 27 15:58:14 2015 -0600
server: HTTP: invoke stage 40 upon request end
Signed-off-by: Eduardo Silva <[email protected]>
commit 3570ba2861dd0c13afe6d0bfa95872b1b360ac7b
Author: Eduardo Silva <[email protected]>
Date: Mon Jul 27 14:02:12 2015 -0600
server: streams: do not release stream with pending bytes
Signed-off-by: Eduardo Silva <[email protected]>
commit 85e492d766599b89a0d9a148df9a13fe26d1706f
Author: Eduardo Silva <[email protected]>
Date: Mon Jul 27 11:51:21 2015 -0600
Plugins: dirlisting: general improvements and cleanup
Signed-off-by: Eduardo Silva <[email protected]>
commit 7d31f9764a962c62ddf340fcf8b4d1223fb996e4
Author: Eduardo Silva <[email protected]>
Date: Mon Jul 27 11:51:00 2015 -0600
server: streams & http: cleanup channel on exit
Signed-off-by: Eduardo Silva <[email protected]>
commit 86aa7ee843a3b609bad921ddc5db8be14c21b1ca
Author: Eduardo Silva <[email protected]>
Date: Sun Jul 26 12:43:04 2015 -0600
mk_server: HTTP: do not walk around all stage30
Signed-off-by: Eduardo Silva <[email protected]>
commit 870ff952ef530de5911ea4bf56d1233c6642534b
Author: Eduardo Silva <[email protected]>
Date: Sun Jul 26 12:27:26 2015 -0600
Plugins: cheetah: fix format parameters
Signed-off-by: Eduardo Silva <[email protected]>
commit 268072bd72ab6f7eb888d3b8afc0e381f917df91
Author: Eduardo Silva <[email protected]>
Date: Sun Jul 26 12:15:52 2015 -0600
server: vhost: fix missing plugin msg
Signed-off-by: Eduardo Silva <[email protected]>
commit 801352f0550e7574b3b61d935e86fb68d33ea565
Author: Eduardo Silva <[email protected]>
Date: Sun Jul 26 12:14:34 2015 -0600
Plugins: cgi: fix unitialized vars and use proper URI address
Signed-off-by: Eduardo Silva <[email protected]>
commit 3a10263b7007320df59a10bf001bf6ee7cd69d52
Author: Eduardo Silva <[email protected]>
Date: Sun Jul 26 12:07:48 2015 -0600
Plugins: auth: fix number of parameters
Signed-off-by: Eduardo Silva <[email protected]>
commit 0e293b071cb608a47a8b0d393544a0238ebaa2c5
Author: Eduardo Silva <[email protected]>
Date: Sun Jul 26 12:07:35 2015 -0600
server: HTTP: remove silly msg
Signed-off-by: Eduardo Silva <[email protected]>
commit eb0dbf936e70d64e4438c64a49ae7486d80aa990
Author: Eduardo Silva <[email protected]>
Date: Sun Jul 26 11:53:47 2015 -0600
Plugins: fastcgi: fix callback parameters
Signed-off-by: Eduardo Silva <[email protected]>
commit f26f2108e760411b460aee0b277c695db05213cc
Author: Eduardo Silva <[email protected]>
Date: Sun Jul 26 11:49:40 2015 -0600
Plugins: cgi: handle parameters from handler setup
Signed-off-by: Eduardo Silva <[email protected]>
commit aa986169ebf4ba648fded97fec95626599dee16f
Author: Eduardo Silva <[email protected]>
Date: Sun Jul 26 11:47:22 2015 -0600
server: plugin: handlers now support parameters
The handlers definitions on virtual host now can specify parameters, e.g:
[HANDLERS]
Match /.*\.cgi param_1 param_2 param_3
Signed-off-by: Eduardo Silva <[email protected]>
commit 98481f6f2755f49e74aa88c30ee1587aa809324b
Author: Eduardo Silva <[email protected]>
Date: Sun Jul 26 06:55:49 2015 -0600
server: HTTP: do not handle missing files with a handler (temporal)
Signed-off-by: Eduardo Silva <[email protected]>
commit d164a051bf053babe30742277dee8acb0a15f230
Author: Eduardo Silva <[email protected]>
Date: Sat Jul 25 15:04:05 2015 -0600
mk_server: add handlers support
this patch enable a new Handlers support for plugins, so now is
possible to define custom handlers for specific URI matches based
on regular expressions, a virtual host may enable FastCGI through
the following setup:
[HANDLERS]
Match /.*\.php fastcgi
The 'Match' rule indicate that it's about a regular expression, the
second argument is the regexec and the third argument is the plugin
handler name (known as short name).
Handlers are processed in order, if no handler own the request the
server will dispatch the file content.
Signed-off-by: Eduardo Silva <[email protected]>
commit dd2e7bee7e990cc3111522e997a20e2459ef41b9
Author: Eduardo Silva <[email protected]>
Date: Sat Jul 25 12:49:14 2015 -0600
Plugins: fastcgi: make query string conditional
Signed-off-by: Eduardo Silva <[email protected]>
commit 0a9a2237ac6e90630c28e650cbdc04aeeef208f7
Author: Eduardo Silva <[email protected]>
Date: Sat Jul 25 11:42:22 2015 -0600
Plugins: fastcgi: handle unix socket mode
Signed-off-by: Eduardo Silva <[email protected]>
commit 097fbc702f70320a8e53f916ac181582904a5469
Author: Eduardo Silva <[email protected]>
Date: Sat Jul 25 11:41:57 2015 -0600
mk_server: plugin: new api to open unix sockets
Signed-off-by: Eduardo Silva <[email protected]>
commit 28c4683c7a667bdec8b47cad49ff567a01cd6d1d
Author: Eduardo Silva <[email protected]>
Date: Sat Jul 25 11:40:56 2015 -0600
mk_server: HTTP: flush error page on error
Signed-off-by: Eduardo Silva <[email protected]>
commit 763d032e4044ae705e84c321cd6694c2bdb218ba
Author: Eduardo Silva <[email protected]>
Date: Sat Jul 25 10:36:29 2015 -0600
plugins: fastcgi: general improvements and cleanups on broken connections
Signed-off-by: Eduardo Silva <[email protected]>
commit e9cee1f7fa37a5daaff71bb985bf918b1db84c7e
Author: Eduardo Silva <[email protected]>
Date: Sat Jul 25 10:35:48 2015 -0600
mk_server: server: do not process idle connections
Signed-off-by: Eduardo Silva <[email protected]>
commit dbea72780a8e9880db44bdb9b011e23a32a6a838
Author: Eduardo Silva <[email protected]>
Date: Sat Jul 25 10:35:17 2015 -0600
mk_server: scheduler: initialize event and defer event free
Signed-off-by: Eduardo Silva <[email protected]>
commit 858491d1b074ecbd16504c2a0be0e7c0c569f2e7
Author: Eduardo Silva <[email protected]>
Date: Sat Jul 25 10:34:31 2015 -0600
mk_server: plugin: on request end, set the connection as incomplete
Signed-off-by: Eduardo Silva <[email protected]>
commit aa0fac20feb1e14f3581d2bf767a0108e5f68100
Author: Eduardo Silva <[email protected]>
Date: Sat Jul 25 10:33:56 2015 -0600
mk_server: HTTP: set handler data and perform channel cleanup on broken connection
Signed-off-by: Eduardo Silva <[email protected]>
commit d685645426848e5917c2e4f34a73c3740594730a
Author: Eduardo Silva <[email protected]>
Date: Sat Jul 25 10:27:46 2015 -0600
mk_core: event: add new status field
Signed-off-by: Eduardo Silva <[email protected]>
commit 76d557a916a2040eee8bc00d80e11725e2b176c3
Author: Eduardo Silva <[email protected]>
Date: Sat Jul 25 10:26:00 2015 -0600
mk_core: iov: fix buf_to_free reference
Signed-off-by: Eduardo Silva <[email protected]>
commit af9f867c44bfed3fea54d57488247aba2d13a1d2
Author: Eduardo Silva <[email protected]>
Date: Sat Jul 25 10:24:58 2015 -0600
mk_server: stream: new clean interface to remove channel data
Signed-off-by: Eduardo Silva <[email protected]>
commit 8c53246ee66249d054a87a80da9fa9818fffe7ac
Author: Eduardo Silva <[email protected]>
Date: Sat Jul 25 10:23:36 2015 -0600
mk_server: HTTP: session request now have a new handler_data reference (used by plugins)
Signed-off-by: Eduardo Silva <[email protected]>
commit 5a2eca4e4b3b411b1da49efce9da56ed713c044f
Author: Eduardo Silva <[email protected]>
Date: Sat Jul 25 10:22:55 2015 -0600
mk_server: HTTP: do not mk_bug() when status is already completed
Signed-off-by: Eduardo Silva <[email protected]>
commit 6cd33fc88cd8596d7540e7187b80aa0401f5804f
Author: Eduardo Silva <[email protected]>
Date: Sat Jul 25 10:21:24 2015 -0600
API: fix MK_TRACE position declaration
Signed-off-by: Eduardo Silva <[email protected]>
commit 5051e1a7117020cbb96f36341ba0f24b53fab409
Author: Eduardo Silva <[email protected]>
Date: Fri Jul 24 09:35:39 2015 -0600
Trace: shrink component name
Signed-off-by: Eduardo Silva <[email protected]>
commit 4d1e398b1acb747227734af9166e820713849e08
Author: Eduardo Silva <[email protected]>
Date: Fri Jul 24 09:13:45 2015 -0600
Trace: shrink file path, do not include absolute path
This patch makes CMAKE to define a new macro called __FILENAME__ which
allows to set the relative path of the target file instead of the absolute
path, e.g:
before: /home/edsiper/coding/monkey/mk_server/mk_server.c
after : mk_server/mk_server.c
Now the trace mode use this new __FILENAME__ macro making the output
a bit friendly.
Signed-off-by: Eduardo Silva <[email protected]>
commit a680478232959070ae4cfe7e02216badd1ff2070
Author: Eduardo Silva <[email protected]>
Date: Wed Jul 22 22:32:14 2015 -0600
Plugins: FastCGI: fix unitialized variable on on_read callback (CID 1312111)
Signed-off-by: Eduardo Silva <[email protected]>
commit f05a8c4d0b833c8239026ee4a7cd5d1827bc7ead
Author: Eduardo Silva <[email protected]>
Date: Wed Jul 22 22:28:47 2015 -0600
Plugins: FastCGI: do not assume 'buf' can be null (CID 1312110)
Signed-off-by: Eduardo Silva <[email protected]>
commit 856858980ca0a6d0dcf0f0ba237a31b2033fca3a
Author: Eduardo Silva <[email protected]>
Date: Wed Jul 22 22:19:45 2015 -0600
mk_server: streams: fix dereference after null check (CID 1312109)
Signed-off-by: Eduardo Silva <[email protected]>
commit df43e8bd93980c6977d07eb3a1af3164623dd28d
Author: Eduardo Silva <[email protected]>
Date: Wed Jul 22 21:59:28 2015 -0600
Plugins: CGI: devnull cannot be negative (CID 1124125)
Signed-off-by: Eduardo Silva <[email protected]>
commit 232b036cc2d7a95abef27681cb9d47f7fc20bf7c
Author: Eduardo Silva <[email protected]>
Date: Wed Jul 22 17:58:06 2015 -0600
Plugins: FastCGI: add missing return value
Signed-off-by: Eduardo Silva <[email protected]>
commit 72b3b52ee9daf1d1444613c97550d6f5968c2262
Author: Eduardo Silva <[email protected]>
Date: Wed Jul 22 17:57:28 2015 -0600
mk_server: plugin: re-map socket inteface
Signed-off-by: Eduardo Silva <[email protected]>
commit d9bf3ffaabddbee11a3709d6c20d1ef837e95a26
Author: Eduardo Silva <[email protected]>
Date: Wed Jul 22 17:55:49 2015 -0600
mk_server: socket: improved connect interface
Signed-off-by: Eduardo Silva <[email protected]>
commit 1f9eb5c84426e036c5baf7611e82f2c27a646dd1
Author: Eduardo Silva <[email protected]>
Date: Wed Jul 22 17:55:17 2015 -0600
mk_server: http: add header counters
Signed-off-by: Eduardo Silva <[email protected]>
commit ad043900b9bf8d4e0536b24198d3967869510cf4
Author: Eduardo Silva <[email protected]>
Date: Wed Jul 22 17:54:18 2015 -0600
mk_core: event: new initializator
Signed-off-by: Eduardo Silva <[email protected]>
commit ace406df30d6e627345916f857e458314c3360f6
Author: Eduardo Silva <[email protected]>
Date: Wed Jul 22 17:51:50 2015 -0600
Build: enable fastcgi plugin by default
Signed-off-by: Eduardo Silva <[email protected]>
commit 989bae1d501f9c010283f24698294e4111f4aa7a
Author: Eduardo Silva <[email protected]>
Date: Wed Jul 22 17:49:59 2015 -0600
Plugins: FastCGI: new FastCGI plugin
This new implementation of the fastcgi interface use the new Monkey
architecture and reduce the code complexity due to the new features
available on the server core.
It drops some neat features from the old version as KeepAlive and
the ability of multiple connections, all that will be restored in the
new version of Monkey which will support server pools natively.
Note: old plugin required like 3000 lines of code, the new one only
around 650.
Signed-off-by: Eduardo Silva <[email protected]>
commit d380488a14f9b914a49b8de5d75b90f9c0b4e19b
Author: Eduardo Silva <[email protected]>
Date: Wed Jul 22 17:45:57 2015 -0600
Plugins: FastCGI: deprecate old FastCGI plugin
This patch removes the old fastcgi plugins due to the following reasons:
- New Monkey architecture requires plugins to hook and work in a different way.
- New Monkey features abstract many interfaces that were required by the old plugin
Signed-off-by: Eduardo Silva <[email protected]>
commit ceafd30127c7c22a6612534521b72c2576f9239f
Author: Eduardo Silva <[email protected]>
Date: Sun Jul 19 19:17:52 2015 -0600
mk_server: http_parser: map body content
Signed-off-by: Eduardo Silva <[email protected]>
commit e34a971e17b737b099e3c130cc1a27741d88a76e
Author: Eduardo Silva <[email protected]>
Date: Sun Jul 19 18:23:06 2015 -0600
Build: use absolute path on --local mode when setting up the document root
Signed-off-by: Eduardo Silva <[email protected]>
commit 42caa74b228a77c21470385eec1a190fe1e92937
Author: Eduardo Silva <[email protected]>
Date: Sun Jul 19 17:05:01 2015 -0600
mk_server: scheduler: new macro to get connection layer capabilities
Signed-off-by: Eduardo Silva <[email protected]>
commit 89781b5963af38289d9f42c4f6502637ddc51b1e
Author: Eduardo Silva <[email protected]>
Date: Sun Jul 19 14:47:07 2015 -0600
mk_core: iov: fix iov reference pointer
Signed-off-by: Eduardo Silva <[email protected]>
commit 2c459b61fc69c85eed10d6a853ecd625d713b207
Author: Eduardo Silva <[email protected]>
Date: Tue Jul 7 17:53:53 2015 -0600
mk_core: iov: new implementation for mk_iov re-alloc
Signed-off-by: Eduardo Silva <[email protected]>
commit 79630e6945e4e106f87480b2c67514e214143fcc
Author: Eduardo Silva <[email protected]>
Date: Tue Jul 7 17:39:12 2015 -0600
mk_server: header: now each response context have it own iov buffer
This patch get rid of the cached (TLS) iov buffer for the response headers. It
now implements a struct mk_iov inside the struct response_header.
No extra memory allocations are required, we keep the pattern of one memory
allocation per request for HTTP/1.1.
Signed-off-by: Eduardo Silva <[email protected]>
commit 5eb89be5bd4980030f8581c03432374045054fa4
Author: Eduardo Silva <[email protected]>
Date: Tue Jul 7 17:37:21 2015 -0600
mk_core: iov: improve implementation, use just one memory buffer
This patch makes the iov handler to use just one memory buffer instead
of multiple allocations. It also defines a new allocator and initializator
function.
Signed-off-by: Eduardo Silva <[email protected]>
commit 6e749e93bc78a43e03b18a7ced442345a9dfb5f7
Author: Eduardo Silva <[email protected]>
Date: Tue Jul 7 07:52:57 2015 -0600
Plugins: cgi: defer event free when a hangup is faced
Signed-off-by: Eduardo Silva <[email protected]>
commit 0773a305c299e73a5d51b7fa3d48d88ac9989a61
Author: Eduardo Silva <[email protected]>
Date: Tue Jul 7 07:52:30 2015 -0600
mk_core: event: add new field for generic purpose of a linked list
Signed-off-by: Eduardo Silva <[email protected]>
commit bb079fe1197e005e1d311af7950025d48d8ff1b7
Author: Eduardo Silva <[email protected]>
Date: Tue Jul 7 07:37:17 2015 -0600
mk_server: scheduler: new interface to enqueue defer events object free
This patch implements a new scheduler interface that allows the plugins to
defer the release of some object, the context and requirement of implementation
is based on the following behavior:
1. A connection is being handled by a plugin (e.g: CGI), the CGI plugin also
registered it own 'event' into the Event Loop to read incoming data from the
child process.
2. Before to receive the response, the client for some reason closes
the TCP connection.
3. The Scheduler will trap the 'close event' on the connection and start
notifying the protocol handler and the plugin associated about this.
4. The plugin will catch the notification on it stage30_hangup() callback so it
will release it resources (CGI context, child process,
close file desriptors, etc).
5. At this point in the same Event Loop round, it may contain many events notified
in the array, e.g:
[0] TCP connection closed
[N] others...
[16] Read data from CGI child
So when we reach the the 'TCP connection closed'[0], we perform a release procedure as
stated on #3 and #4, but then we reach 'Read data from CGI child'[16] but our event
context was already released due to 'TCP connection closed'[0]. For hence we face a
memory corruption.
In order to avoid this kind of situations, the Scheduler and the plugins interface now
provides a new interface to request the Server to perform a 'memory release' of a linked
list of 'struct mk_event' after processing all the events in the round returned by mk_event_wait().
A plugin only requires to be aware of the broken connection stage30_hangup() and register it
event object mk_api->sched_event_free(struct mk_event *x).
Signed-off-by: Eduardo Silva <[email protected]>
commit c9c44785e354efd6c776509c48cb600464b56589
Author: Eduardo Silva <[email protected]>
Date: Sun Jul 5 21:45:47 2015 -0600
Doc: update draft announcement
Signed-off-by: Eduardo Silva <[email protected]>
commit 9b3e6f055972d774876d3af6ba337955f8f09ca5
Author: Eduardo Silva <[email protected]>
Date: Sun Jul 5 21:17:01 2015 -0600
Plugins: cgi: better handling for exceptions
Signed-off-by: Eduardo Silva <[email protected]>
commit ced05634e7b79fb03c5d44f01a851d6ca6da6f02
Author: Eduardo Silva <[email protected]>
Date: Sun Jul 5 21:15:25 2015 -0600
mk_server: stream: more debug message when TRACE is enabled
Signed-off-by: Eduardo Silva <[email protected]>
commit 1e1c5082221e4f52cdbf3fbf8dbf1dff78e3687c
Author: Eduardo Silva <[email protected]>
Date: Sun Jul 5 21:13:44 2015 -0600
mk_server: scheduler: improve drop connection routine with new socket flags
Signed-off-by: Eduardo Silva <[email protected]>
commit 22b565337b7f3270abbefb7d993222a6fb628c00
Author: Eduardo Silva <[email protected]>
Date: Sun Jul 5 21:13:01 2015 -0600
mk_server: plugin: on http request end, handle event close with a DONE_SOCKET flag
Signed-off-by: Eduardo Silva <[email protected]>
commit d88cf83f0179f940e6704c49a40a655db15b3246
Author: Eduardo Silva <[email protected]>
Date: Sun Jul 5 21:10:57 2015 -0600
mk_core: event: new SOCKET_DONE status
Signed-off-by: Eduardo Silva <[email protected]>
commit a20fd2be48461ac20f73a191faefeafb79037b65
Author: Eduardo Silva <[email protected]>
Date: Fri Jul 3 09:32:53 2015 -0600
Plugins: cgi: remove breakline
Signed-off-by: Eduardo Silva <[email protected]>
commit 57b448421c258b3ad777ffe1beca5e04afd71b34
Author: Eduardo Silva <[email protected]>
Date: Fri Jul 3 09:32:35 2015 -0600
mk_server: plugin: fix validation of list of http requests
Signed-off-by: Eduardo Silva <[email protected]>
commit b9c27a55fdf5f59ac173bc0380a5278dea0d8e72
Author: Eduardo Silva <[email protected]>
Date: Fri Jul 3 07:16:20 2015 -0600
mk_core: utils: rename backend of mk_libc_warn()
Signed-off-by: Eduardo Silva <[email protected]>
commit d3fc419519a6c3d32f5f4b5065d1cf7bd7f1a263
Author: Eduardo Silva <[email protected]>
Date: Thu Jul 2 12:59:53 2015 -0600
mk_core: implement a static buffer for libc error messages (fix #195)
Monkey utils implements a buffer per thread to format libc errors, but
when the mk_utils_libc_error() is invoked from the parent process, it
may crash as the pthread key do not exists.
This patch implements a static buffer for those cases when the call is
invoked from a parent process.
Signed-off-by: Eduardo Silva <[email protected]>
commit e5407e2c547c60a44b76db1c7215ce730a4c69e0
Author: Eduardo Silva <[email protected]>
Date: Tue Jun 30 17:08:46 2015 -0600