benilla-re systems structs docs

URLDownloadReadThread

function · unassigned · host

Address
0x7a69a0 · 376 bytes, up to 0x7a6b17
Signature
uint32_t __stdcall (void *context)
Meaning
Reads a download's status and, for 2xx, its body into the callback, then closes the connection
Confidence
verified, proof one
Finding
glue/manager#the-downloads-replies

Finding: The download's replies in glue: the manager

The status callback 0x7a6b20 keeps each new handle and, on the send's first completion, its error, and starts the worker 0x7a69a0, which reads the status. From 200 to 299 each read of up to 0x4000 bytes goes to callback(param, data, size, 0, 0), the last one empty; else the result is 3 for 404 and 1 otherwise, and 2 when the send timed out. The worker then closes the connection, whose closing status frees the context and calls callback(param, 0, 0, 1, result). A read failing with an error other than pending stores no result, so the final call reports 0, as for a whole body. Nothing closes the session or the four events.

The derivation is in the doc.

Callers 0

None by a direct call or jump.

Callees 1

Calls and jumps by a bare address, from tables/calls.tsv.