mirror of
https://github.com/ChronosX88/netsukuku.git
synced 2024-11-22 10:12:18 +00:00
I just made a change and realised, If the the EMSGSIZE case is ever called upon, We won't know if that is actually an error or not. It has a procedure to resolve it, And if we see a big error message, It might scare us even though it is probably fixed. We, Also, Don't know if the error message is for the same packet, or another. I will have to look into fixing this.
This commit is contained in:
parent
06de3f1f9e
commit
7953b9af92
@ -1118,13 +1118,6 @@ inet_sendto(int s, const void *msg, size_t len, int flags,
|
||||
case EMSGSIZE:
|
||||
error("Packet artificially fragmented: %d", stderr);
|
||||
error("\nData Length: %u", len);
|
||||
socklen_t optlen;
|
||||
optlen = sizeof(sendbuf);
|
||||
int res =
|
||||
getsockopt(s, SOL_SOCKET, SO_SNDBUF, &sendbuf, &optlen);
|
||||
|
||||
error("GetSockOpt: %i \n", res);
|
||||
|
||||
inet_send(s, msg, len/2, flags);
|
||||
err=inet_send(s, (const char *)msg+(len/2),
|
||||
len-(len/2), flags);
|
||||
|
Loading…
Reference in New Issue
Block a user