Comparison

net/server_event.lua @ 6314:8029b8a5f37a

net.server_select/event: Switch sender mode to *a when reading, to make sure we get all available data
author Matthew Wild <mwild1@gmail.com>
date Fri, 25 Jul 2014 13:53:39 +0100
parent 6047:4db0403bfc0d
child 6315:7a3e2f2d43fc
child 6379:a280bd6ccce2
comparison
equal deleted inserted replaced
6311:f44876548487 6314:8029b8a5f37a
845 if receiver.writebufferlen >= buffersize then 845 if receiver.writebufferlen >= buffersize then
846 sender_locked = true; 846 sender_locked = true;
847 sender:pause(); 847 sender:pause();
848 end 848 end
849 end 849 end
850 sender:set_mode("*a");
850 end 851 end
851 852
852 return { 853 return {
853 854
854 cfg = cfg, 855 cfg = cfg,