File tree Expand file tree Collapse file tree 6 files changed +587
-4
lines changed Expand file tree Collapse file tree 6 files changed +587
-4
lines changed Original file line number Diff line number Diff line change 13
13
http_parser.c
14
14
http_parser.h
15
15
.cache.mk
16
+ htstress
Original file line number Diff line number Diff line change 1
1
KDIR =/lib/modules/$(shell uname -r) /build
2
2
3
+ CFLAGS_user = -std=gnu99 -Wall -Wextra -Werror
4
+ LDFLAGS_user = -lpthread
5
+
3
6
obj-m += khttpd.o
4
7
khttpd-objs := \
5
8
http_parser.o \
6
9
http_server.o \
7
10
main.o
8
11
9
12
GIT_HOOKS := .git/hooks/applied
10
- all : $(GIT_HOOKS ) http_parser.c
13
+ all : $(GIT_HOOKS ) http_parser.c htstress
11
14
make -C $(KDIR ) M=$(PWD ) modules
12
15
13
16
$(GIT_HOOKS ) :
14
17
@scripts/install-git-hooks
15
18
@echo
16
19
20
+ htstress : htstress.c
21
+ $(CC ) $(CFLAGS_user ) -o $@ $< $(LDFLAGS_user )
22
+
23
+ check : all
24
+ @scripts/test.sh
25
+
17
26
clean :
18
27
make -C $(KDIR ) M=$(PWD ) clean
28
+ $(RM ) htstress
19
29
20
30
# Download http_parser.[ch] from nodejs/http-parser repository
21
31
# the inclusion of standard header files such as <string.h> will be replaced
Original file line number Diff line number Diff line change @@ -12,11 +12,13 @@ The server defaults to port 8081 but this can be easily configured using command
12
12
13
13
## License
14
14
15
- ` khttpdc ` is released under the MIT License. Use of this source code is governed by
15
+ ` khttpd ` is released under the MIT License. Use of this source code is governed by
16
16
a MIT License that can be found in the LICENSE file.
17
17
18
18
External source code:
19
19
* ` http_parser.[ch] ` : taken from [ nodejs/http-parser] ( https://github.com/nodejs/http-parser )
20
- - Copyright Joyent, Inc. and other Node contributors.
20
+ - Copyrighted by Joyent, Inc. and other Node contributors.
21
21
- MIT License
22
-
22
+ * ` htstress.c ` : derived from [ htstress] ( https://github.com/arut/htstress )
23
+ - Copyrighted byRoman Arutyunyan
24
+ - 2-clause BSD license
You can’t perform that action at this time.
0 commit comments