mirror of
https://github.com/BeamMP/BeamMP-Server.git
synced 2026-04-23 08:27:06 +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);
|
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;
|
||||||
|
|||||||
Reference in New Issue
Block a user