Clarify that partial is handled in HTTP

git-svn-id: file:///home/svn/framework3/trunk@12619 4d416f70-5f16-0410-b530-b9f4589650da
unstable
HD Moore 2011-05-15 18:23:14 +00:00
parent d50613deaa
commit c5c4c929b8
1 changed files with 6 additions and 4 deletions

View File

@ -275,9 +275,6 @@ protected
#
def on_client_data(cli)
begin
#
# XXX: Handle ParseCode::Partial
#
data = cli.read(65535)
raise ::EOFError if not data
@ -286,8 +283,13 @@ protected
case cli.request.parse(data)
when Packet::ParseCode::Completed
dispatch_request(cli, cli.request)
cli.reset_cli
when Packet::ParseCode::Partial
# Return and wait for the on_client_data handler to be called again
# The Request object tracks the state of the request for us
return
when Packet::ParseCode::Error
close_client(cli)
end