Add on device prerelease testing
This commit is contained in:
1 parent
23336c36e8
commit
7ebccaa812
23 files changed
+59
-53
No files matched your search
@@ -113,7 +113,7 @@ namespace Http
|
||||
LogError("illegal header state @" + m.client)
|
||||
end if
|
||||
|
||||
sent = m.response.SendHeader(m.socket, Http.BUFSIZE)
|
||||
sent = m.response.SendHeader(m.socket)
|
||||
|
||||
if m.CheckResult(sent, "send header")
|
||||
m.total_sent = m.total_sent + sent
|
||||
@@ -135,7 +135,7 @@ namespace Http
|
||||
LogError("illegal response state @" + m.client)
|
||||
end if
|
||||
|
||||
sent = m.response.Send(m.socket, Http.BUFSIZE)
|
||||
sent = m.response.Send(m.socket)
|
||||
if m.CheckResult(sent, "send response")
|
||||
m.total_sent = m.total_sent + sent
|
||||
server.total_out = server.total_out + sent
|
||||
|
||||
@@ -52,7 +52,7 @@ namespace Http
|
||||
|
||||
if m.state = Http.HttpRequestState.READING_OPERATION
|
||||
if m.ParseOperation()
|
||||
m.ProcessOperation(connection.server.utils)
|
||||
m.ProcessOperation()
|
||||
m.state = Http.HttpRequestState.READING_HEADERS
|
||||
end if
|
||||
end if
|
||||
@@ -198,7 +198,7 @@ namespace Http
|
||||
m.ParseConnection(connection)
|
||||
end function
|
||||
|
||||
function ProcessOperation(utils as Http.Utils)
|
||||
function ProcessOperation()
|
||||
m.route = m.uri
|
||||
split = m.route.Instr("?")
|
||||
if split <> -1
|
||||
|
||||
@@ -116,7 +116,7 @@ ${m.GeneratedBy()}
|
||||
m.headers["Content-Type"] = mimeType
|
||||
end function
|
||||
|
||||
function Send(sock as object, bufsize as integer) as integer
|
||||
function Send(sock as object) as integer
|
||||
sent = -1
|
||||
buf_pos = m.start + m.sent - m.buf_start
|
||||
buf_remaining = m.body_buffer.count() - buf_pos
|
||||
@@ -135,7 +135,7 @@ ${m.GeneratedBy()}
|
||||
return sent
|
||||
end function
|
||||
|
||||
function SendHeader(sock as object, bufsize as integer) as integer
|
||||
function SendHeader(sock as object) as integer
|
||||
if m.header = invalid
|
||||
m.GenerateHeader()
|
||||
end if
|
||||
|
||||
Reference in new issue
Block a user