Skip to content
Snippets Groups Projects
Commit a6bfe42c authored by rswindell's avatar rswindell
Browse files

Supports command lines and responses up to 1 Kbytes per line (2 times the max

specified in RFCs) and message lines up to 4 Kbytes per line (8 times the RFC
specified max).
parent 30927ad7
No related branches found
No related tags found
No related merge requests found
......@@ -135,7 +135,7 @@ if(!no_anonymous)
while(client.socket.is_connected && !quit) {
// Get Request
cmdline = client.socket.recvline(512 /*maxlen*/, 300 /*timeout*/);
cmdline = client.socket.recvline(1024 /*maxlen*/, 300 /*timeout*/);
if(cmdline==null) {
log(LOG_WARNING,"!TIMEOUT waiting for request");
......@@ -685,7 +685,7 @@ while(client.socket.is_connected && !quit) {
var lines=0;
while(client.socket.is_connected) {
line = client.socket.recvline(512 /*maxlen*/, 300 /*timeout*/);
line = client.socket.recvline(4096 /*maxlen*/, 300 /*timeout*/);
if(line==null) {
log(LOG_NOTICE,"!TIMEOUT waiting for text line");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment