mirror of
https://github.com/cloudwu/skynet.git
synced 2026-07-24 03:53:09 +00:00
update history
This commit is contained in:
@@ -5,6 +5,7 @@ Dev version
|
||||
* Simplify clientsocket lib
|
||||
* mongo driver support replica set
|
||||
* config file support read from ENV
|
||||
* add simple httpd (see examples/simpleweb.lua)
|
||||
|
||||
v0.4.2 (2014-7-14)
|
||||
-----------
|
||||
|
||||
@@ -11,7 +11,8 @@ if mode == "agent" then
|
||||
skynet.start(function()
|
||||
skynet.dispatch("lua", function (_,_,id)
|
||||
socket.start(id)
|
||||
local code, url, method, header, body = httpd.read_request(sockethelper.readfunc(id))
|
||||
-- limit request body size to 8192 (you can pass nil to unlimit)
|
||||
local code, url, method, header, body = httpd.read_request(sockethelper.readfunc(id), 8192)
|
||||
if code then
|
||||
if code ~= 200 then
|
||||
httpd.write_response(sockethelper.writefunc(id), code)
|
||||
|
||||
Reference in New Issue
Block a user