summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authordjn <[email protected]>2018-12-05 12:42:18 +0800
committerdjn <[email protected]>2018-12-05 12:42:18 +0800
commit23b9b2da400a828f750bdc88a09db003b3a8cb2e (patch)
tree973bfb234cc0bc09d6646d2d52798fb8af2cc28a /bin
Initial commit
Diffstat (limited to 'bin')
-rw-r--r--bin/http.inf16
-rw-r--r--bin/http.sobin0 -> 526676 bytes
-rw-r--r--bin/http/http.conf42
-rw-r--r--bin/http/http_main.conf30
4 files changed, 88 insertions, 0 deletions
diff --git a/bin/http.inf b/bin/http.inf
new file mode 100644
index 0000000..8583fd8
--- /dev/null
+++ b/bin/http.inf
@@ -0,0 +1,16 @@
+[PLUGINFO]
+PLUGNAME=HTTP
+#SO_PATH=/home/lishu/2014/shuihu/http_2/bin/http.so
+SO_PATH=./plug/protocol/http/http.so
+INIT_FUNC=HTTP_INIT
+DESTROY_FUNC=HTTP_DESTROY
+GETPLUGID_FUNC=HTTP_GETPLUGID
+FLAGCHANGE_FUNC=HTTP_FLAG_CHANGE
+FLAGSTATE_FUNC=HTTP_PROT_FUNSTAT
+
+[TCP]
+FUNC_FLAG=ALL
+FUNC_NAME=HTTP_ENTRY
+
+
+
diff --git a/bin/http.so b/bin/http.so
new file mode 100644
index 0000000..a5c9001
--- /dev/null
+++ b/bin/http.so
Binary files differ
diff --git a/bin/http/http.conf b/bin/http/http.conf
new file mode 100644
index 0000000..e604abc
--- /dev/null
+++ b/bin/http/http.conf
@@ -0,0 +1,42 @@
+#http_special
+#all regions
+1 HTTP_ALL
+2 HTTP_OTHER_REGIONS
+#http state
+3 HTTP_STATE
+4 HTTP_REQ_LINE
+5 HTTP_RES_LINE
+6 HTTP_CONTENT
+7 HTTP_UNGZIP_CONTENT
+8 HTTP_MESSAGE_URL
+9 HTTP_URI
+#http_request
+10 HTTP_HOST
+11 HTTP_REFERER
+12 HTTP_USER_AGENT
+13 HTTP_COOKIE
+14 HTTP_PROXY_AUTHORIZATION
+15 HTTP_AUTHORIZATION
+#http_response
+16 HTTP_LOCATION
+17 HTTP_SERVER
+18 HTTP_ETAG
+#http_general
+19 HTTP_DATE
+20 HTTP_TRAILER
+21 HTTP_TRANSFER_ENCODING
+22 HTTP_VIA
+23 HTTP_PRAGMA
+24 HTTP_CONNECTION
+#http_content
+25 HTTP_CONT_ENCODING
+26 HTTP_CONT_LANGUAGE
+27 HTTP_CONT_LOCATION
+28 HTTP_CONT_DISPOSITION
+29 HTTP_CONT_RANGE
+30 HTTP_CONT_LENGTH
+31 HTTP_CONT_TYPE
+32 HTTP_CHARSET
+33 HTTP_EXPIRES
+34 HTTP_X_FLASH_VERSION
+35 HTTP_TRANSFER_LENGTH
diff --git a/bin/http/http_main.conf b/bin/http/http_main.conf
new file mode 100644
index 0000000..3476c09
--- /dev/null
+++ b/bin/http/http_main.conf
@@ -0,0 +1,30 @@
+[FUNCTION]
+switch_no_biz=1
+
+#0 means close stat
+stat_cycle=0
+#stat output screen 0: screen 1: file
+stat_screen_print=0
+stat_file=./log/http/http_stat.log
+
+#ungzip
+ungzip_switch=1
+
+#support proxy
+proxy_switch=1
+
+#single-way traffic need http session num, 0 means no this function
+singleway_maxseq=2
+
+#0: field callback mode(default) 1:batch callback mode
+callback_mode=0
+
+#batch field maxnum when http_all or http_other
+batch_field_maxnum=32
+
+[LOG]
+#FATAL:wrong info
+#INFO: lostlen; special proc ;proxy info
+#DEBUG: pending and close info; all url;
+log_level=30
+log_path=./log/http/runtime