mirror of
https://github.com/BeamMP/BeamMP-Server.git
synced 2025-07-01 23:35:41 +00:00
use sendfile64
This commit is contained in:
parent
5baeaa72c2
commit
b097acfd4a
@ -831,7 +831,7 @@ void TNetwork::SplitLoad(TClient& c, size_t Offset, size_t End, bool D, const st
|
|||||||
|
|
||||||
auto SysOffset = off_t(Offset);
|
auto SysOffset = off_t(Offset);
|
||||||
|
|
||||||
ssize_t ret = sendfile(socket, fd, &SysOffset, End - Offset);
|
ssize_t ret = sendfile64(socket, fd, &SysOffset, End - Offset);
|
||||||
if (ret < 0) {
|
if (ret < 0) {
|
||||||
beammp_errorf("Failed to send mod '{}' to client {}: {}", Name, c.GetID(), std::strerror(errno));
|
beammp_errorf("Failed to send mod '{}' to client {}: {}", Name, c.GetID(), std::strerror(errno));
|
||||||
return;
|
return;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user