Correctie lange antwoorden (1500).

- Extra check op '\r' in recv en loop totdat die gevonden is.
 - decode verplaats naar recv functie.
This commit is contained in:
Marcel Nijenhof
2019-02-15 15:35:47 +01:00
parent 3479166321
commit a5e7d09aa5
2 changed files with 13 additions and 10 deletions

2
siprun
View File

@@ -63,7 +63,7 @@ def main():
cmd = cmd.replace('\n', '\r')
print("> [%s]" % (cmd.strip('\r')))
lmwsip.send(cmd)
print("< [%s]" % (lmwsip.recv().decode('utf-8').strip('\r')))
print("< [%s]" % (lmwsip.recv().strip('\r')))
f.close()
if __name__ == "__main__":