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

Set readln() to 512 if not specified by caller.

parent f9f0020e
No related branches found
No related tags found
No related merge requests found
......@@ -108,6 +108,8 @@ function writeln(str)
function readln(len)
{
if(!len)
len=512; // RFC977 and RFC3977 specify a maximum of 512-octets per response line
rsp = socket.recvline(len);
if(debug)
printf("rsp: %s\r\n",rsp);
......
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