-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
New listener configuration directive MaxURI sets the maximum allowed length of an URI. * NEWS: Document changes. * doc/pound.8: Likewise. * doc/pound.texi: Likewise. * src/config.c (http_parsetab, https_parsetab): New statement: MaxURI. * src/pound.h (max_req): Rename to max_req_size. All uses changed. New field: max_uri_length. * src/http.c (do_http): Optionally check if URI length is OK. * tests/maxuri.at: New testcase. * tests/Makefile.am: Add new testcase. * tests/testsuite.at: Add new testcase.
- Loading branch information
1 parent
f6e4068
commit b56e958
Showing
9 changed files
with
92 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -95,6 +95,7 @@ TESTSUITE_AT = \ | |
logsup.at\ | ||
lstset.at\ | ||
maxrequest.at\ | ||
maxuri.at\ | ||
multival.at\ | ||
nb.at\ | ||
not.at\ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
# This file is part of pound testsuite. -*- autotest -*- | ||
# Copyright (C) 2022-2024 Sergey Poznyakoff | ||
# | ||
# Pound is free software; you can redistribute it and/or modify | ||
# it under the terms of the GNU General Public License as published by | ||
# the Free Software Foundation; either version 3 of the License, or | ||
# (at your option) any later version. | ||
# | ||
# Pound is distributed in the hope that it will be useful, | ||
# but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
# GNU General Public License for more details. | ||
# | ||
# You should have received a copy of the GNU General Public License | ||
# along with pound. If not, see <http://www.gnu.org/licenses/>. | ||
AT_SETUP([MaxURI]) | ||
AT_KEYWORDS([maxuri]) | ||
|
||
PT_CHECK([ListenHTTP | ||
MaxURI 8 | ||
Service | ||
Backend | ||
Address | ||
Port | ||
End | ||
End | ||
End | ||
], | ||
[GET /echo/file | ||
|
||
end | ||
|
||
414 | ||
end | ||
]) | ||
|
||
AT_CLEANUP |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters