mirror of
https://github.com/BeamMP/BeamMP-Server.git
synced 2026-04-02 22:06:26 +00:00
use sendfile64
This commit is contained in:
@@ -831,7 +831,7 @@ void TNetwork::SplitLoad(TClient& c, size_t Offset, size_t End, bool D, const st
|
||||
|
||||
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) {
|
||||
beammp_errorf("Failed to send mod '{}' to client {}: {}", Name, c.GetID(), std::strerror(errno));
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user