Blockland Forums > Modification Help
RTB Development
Chrono:
It's not about sending data.
It's about receiving data.
MegaScientifical:
Not my point. In any case, have the parser notice broken XML and send a report to Ephialtes instead of starting a crash loop. That make sense?
Kalphiter:
I've had an enormous amount of connections (about 12000 by 5 servers) to the RTB server that didn't close.
--- Code: ---//--- OBJECT WRITE BEGIN ---
new ScriptGroup() {
class = "RTB_TCPFactory";
headerConnection = "close";
headers = "3";
header0 = "Host";
header2 = "Connection";
headerUser-Agent = "RTB/4.0";
port = "80";
host = "api.returntoblockland.com";
header1 = "User-Agent";
resource = "/apiRouter.php?d=APISA";
headerHost = "api.returntoblockland.com";
new TCPObject() {
factory = "4226";
receiving = "0";
dead = "0";
connected = "0";
request = "POST /apiRouter.php?d=APISA HTTP/1.1\r\nContent-Length: 93\r\nContent-Type: "
@"application/x-www-form-urlencoded\r\nHost: api.returntoblockland.com\r\nUser-Agent: "
@"RTB/4.0\r\nConnection: close\r\n\r\nn=LegoPepper&b=3763&c=POST&arg1=31300&"
@"arg2=0&arg3=&arg4=&arg5=&arg6=&arg7=&arg8=&arg9=&arg10=";
module = "RTB_Server_Authentication";
lineCallback = "onPostReply";
};
new TCPObject() {
factory = "4226";
receiving = "0";
dead = "0";
connected = "0";
request = "POST /apiRouter.php?d=APISA HTTP/1.1\r\nContent-Length: 93\r\nContent-Type: "
@"application/x-www-form-urlencoded\r\nHost: api.returntoblockland.com\r\nUser-Agent: "
@"RTB/4.0\r\nConnection: close\r\n\r\nn=LegoPepper&b=3763&c=POST&arg1=31300&"
@"arg2=0&arg3=&arg4=&arg5=&arg6=&arg7=&arg8=&arg9=&arg10=";
module = "RTB_Server_Authentication";
lineCallback = "onPostReply";
};
new TCPObject() {
factory = "4226";
receiving = "0";
dead = "0";
connected = "0";
request = "POST /apiRouter.php?d=APISA HTTP/1.1\r\nContent-Length: 127\r\nContent-Type: "
@"application/x-www-form-urlencoded\r\nHost: api.returntoblockland.com\r\nUser-Agent: "
@"RTB/4.0\r\nConnection: close\r\n\r\nn=LegoPepper&b=3763&c=POST&arg1=31300&"
@"arg2=1&arg3=LegoPepper%3B75.142.240.41%3B0%3B2&arg4=&arg5=&arg6=&arg7=&arg8=&arg9=&arg10=";
module = "RTB_Server_Authentication";
lineCallback = "onPostReply";
};
[...]
}
--- End code ---
--- Code: ---Active Connections
Proto Local Address Foreign Address State PID
TCP 69.64.33.32:49159 173.230.133.148:80 CLOSE_WAIT 5364
TCP 69.64.33.32:49160 173.230.133.148:80 CLOSE_WAIT 11376
TCP 69.64.33.32:49162 173.230.133.148:80 CLOSE_WAIT 2992
TCP 69.64.33.32:49164 173.230.133.148:80 CLOSE_WAIT 5364
TCP 69.64.33.32:49165 173.230.133.148:80 CLOSE_WAIT 5364
TCP 69.64.33.32:49167 173.230.133.148:80 CLOSE_WAIT 5364
TCP 69.64.33.32:49168 173.230.133.148:80 CLOSE_WAIT 2992
TCP 69.64.33.32:49169 173.230.133.148:80 CLOSE_WAIT 5364
TCP 69.64.33.32:49170 173.230.133.148:80 CLOSE_WAIT 2992
TCP 69.64.33.32:49171 173.230.133.148:80 CLOSE_WAIT 5364
TCP 69.64.33.32:49172 173.230.133.148:80 CLOSE_WAIT 5364
TCP 69.64.33.32:49173 173.230.133.148:80 CLOSE_WAIT 5364
TCP 69.64.33.32:49174 173.230.133.148:80 CLOSE_WAIT 5364
[...]
TCP 69.64.33.32:65515 173.230.133.148:80 CLOSE_WAIT 2992
TCP 69.64.33.32:65516 173.230.133.148:80 CLOSE_WAIT 2992
TCP 69.64.33.32:65517 173.230.133.148:80 CLOSE_WAIT 5364
TCP 69.64.33.32:65518 173.230.133.148:80 CLOSE_WAIT 2992
TCP 69.64.33.32:65519 173.230.133.148:80 CLOSE_WAIT 11376
TCP 69.64.33.32:65520 173.230.133.148:80 CLOSE_WAIT 5364
TCP 69.64.33.32:65521 173.230.133.148:80 CLOSE_WAIT 2992
TCP 69.64.33.32:65522 173.230.133.148:80 CLOSE_WAIT 5364
TCP 69.64.33.32:65523 173.230.133.148:80 CLOSE_WAIT 5364
TCP 69.64.33.32:65524 173.230.133.148:80 CLOSE_WAIT 2992
TCP 69.64.33.32:65525 173.230.133.148:80 CLOSE_WAIT 5364
TCP 69.64.33.32:65526 173.230.133.148:80 CLOSE_WAIT 5364
TCP 69.64.33.32:65527 173.230.133.148:80 CLOSE_WAIT 5364
TCP 69.64.33.32:65528 173.230.133.148:80 CLOSE_WAIT 5364
TCP 69.64.33.32:65529 173.230.133.148:80 CLOSE_WAIT 2992
TCP 69.64.33.32:65530 173.230.133.148:80 CLOSE_WAIT 2992
TCP 69.64.33.32:65531 173.230.133.148:80 CLOSE_WAIT 2992
TCP 69.64.33.32:65532 173.230.133.148:80 CLOSE_WAIT 2992
TCP 69.64.33.32:65533 173.230.133.148:80 CLOSE_WAIT 5364
TCP 69.64.33.32:65535 173.230.133.148:80 CLOSE_WAIT 2992
--- End code ---
However, this looks more like an engine bug.
Ephialtes:
Actually I think that's a bug I've fixed in RTB 4.01 - I'll be releasing that shortly. If you want to fix it in the meantime throw this at the bottom of dedicated.cs:
--- Code: ---//*********************************************************
//* Activate Packages
//*********************************************************
activatePackage(RTB_Support_Networking);
--- End code ---
Seems like an engine bug that is exacerbated by whatever I did - either way it's a bit weird, but this fixes it ^
Kalphiter:
And how exactly did it happen?