mirror of
https://git.proxmox.com/git/libgit2
synced 2025-05-06 11:19:47 +00:00
Add network transfer callbacks on Windows
This commit is contained in:
parent
8bba3c95b8
commit
a0ce87c51c
@ -403,6 +403,7 @@ static int http_recv_cb(gitno_buffer *buf)
|
|||||||
|
|
||||||
memcpy(buf->data + buf->offset, buffer, recvd);
|
memcpy(buf->data + buf->offset, buffer, recvd);
|
||||||
buf->offset += recvd;
|
buf->offset += recvd;
|
||||||
|
if (buf->packetsize_cb) buf->packetsize_cb(recvd, buf->packetsize_payload);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
return (int)(buf->offset - old_len);
|
return (int)(buf->offset - old_len);
|
||||||
|
Loading…
Reference in New Issue
Block a user