update history

This commit is contained in:
Cloud Wu
2014-07-23 14:04:32 +08:00
parent 0188e263dd
commit db25d1acc6
2 changed files with 3 additions and 1 deletions

View File

@@ -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)
-----------

View File

@@ -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)