Browse Source

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.

MissValeska 10 years ago
parent
commit
7953b9af92
1 changed files with 0 additions and 7 deletions
  1. 0
    7
      src/inet.c

+ 0
- 7
src/inet.c View File

@@ -1118,13 +1118,6 @@ inet_sendto(int s, const void *msg, size_t len, int flags,
1118 1118
 		case EMSGSIZE:
1119 1119
 			error("Packet artificially fragmented: %d", stderr);
1120 1120
 			error("\nData Length: %u", len);
1121
-			socklen_t optlen;
1122
-			optlen = sizeof(sendbuf);
1123
-			int res =
1124
-				getsockopt(s, SOL_SOCKET, SO_SNDBUF, &sendbuf, &optlen);
1125
-
1126
-			error("GetSockOpt: %i \n", res);
1127
-
1128 1121
 				inet_send(s, msg, len/2, flags);
1129 1122
 				err=inet_send(s, (const char *)msg+(len/2),
1130 1123
 						len-(len/2), flags);

Loading…
Cancel
Save