CONTRIB: tcploop: use the trash instead of NULL for recv()
authorWilly Tarreau <w@1wt.eu>
Tue, 14 Mar 2017 13:50:52 +0000 (14:50 +0100)
committerWilly Tarreau <w@1wt.eu>
Wed, 15 Mar 2017 10:48:46 +0000 (11:48 +0100)
commita84a2dba946bd49676f5222d49eca8d40346e53c
tree3814d0b078c2ffafff88474090c873f93c12f0ea
parent24d41b9b4d009a9ae1aaae54de0be9a0281ba198
CONTRIB: tcploop: use the trash instead of NULL for recv()

NULL is Linux-centric and we're not focused on performance here but
portability and reproducibility. Don't use NULL and use the trash
instead. It may lead to multiple recv() calls for large blocks but
as a benefit it will be possible to see the contents with strace.
contrib/tcploop/tcploop.c