Skip to content

Commit dfc6f00

Browse files
committed
removed hardcoded socket settings
1 parent 1ef7402 commit dfc6f00

File tree

2 files changed

+1
-11
lines changed

2 files changed

+1
-11
lines changed

platforms/config.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ SDL_SHA=f6864924f76e1a0b4abaefc76ae2ed22b1a8916e
66
SDL_IMAGE_SHA=11154afb7855293159588b245b446a4ef09e574f
77
PINMAME_SHA=c69f68aca1fe28d5bb65ab10a17c09fb2593d57b
88
LIBPPUC_SHA=0df00b506af9afb5e190056cdd2b294cd356e749
9-
LIBDMDUTIL_SHA=843998c2f713b98ecd6ce404cf794d113c02fe42
9+
LIBDMDUTIL_SHA=e6487f8ddf92782ad269d714467c9dc1dd38e0d0
1010

1111

1212
if [ -z "${BUILD_TYPE}" ]; then

src/backbox.cpp

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@
33
#define SIGHUP 1
44
#define SIGKILL 9
55
#define SIGQUIT 3
6-
#else
7-
#include <netinet/tcp.h>
86
#endif
97

108
#include <ctype.h>
@@ -494,14 +492,6 @@ int main(int argc, char** argv)
494492
exit(1);
495493
}
496494

497-
int flag = 1;
498-
int mss = 1200; // Conservative size
499-
int bufsize = 65536;
500-
sock.set_option(IPPROTO_TCP, TCP_NODELAY, &flag, sizeof(flag));
501-
sock.set_option(IPPROTO_TCP, TCP_MAXSEG, &mss, sizeof(mss));
502-
sock.set_option(SOL_SOCKET, SO_SNDBUF, &bufsize, sizeof(bufsize));
503-
sock.set_option(SOL_SOCKET, SO_RCVBUF, &bufsize, sizeof(bufsize));
504-
505495
threadMutex.lock();
506496
currentThreadId = ++threadId;
507497
threads.push_back(currentThreadId);

0 commit comments

Comments
 (0)