Bug#1017905 replication failure may leave garbage in the read buffer
Bug#1017905 replication failure may leave garbage in the read buffer

A fix for Bug#1017905 "replication failure may leave garbage in the read
buffer".

No test case since this is a runtime error which is hard to emulate.

Clear the read buffer whenever closing a file desriptor, to remove
garbage data from the closed connection.

KlonD90/tarantool,Sannis/tarantool,rtsisyk/tarantool,dkorolev/tarantool,guard163/tarantool,condor-the-bird/tarantool,mejedi/tarantool,mejedi/tarantool,ocelot-inc/tarantool,dkorolev/tarantool,Sannis/tarantool,mejedi/tarantool,rtsisyk/tarantool,Sannis/tarantool,rtsisyk/tarantool,dkorolev/tarantool,KlonD90/tarantool,condor-the-bird/tarantool,nvoron23/tarantool,vasilenkomike/tarantool,nvoron23/tarantool,guard163/tarantool,dkorolev/tarantool,condor-the-bird/tarantool,Sannis/tarantool,KlonD90/tarantool,condor-the-bird/tarantool,ocelot-inc/tarantool,rtsisyk/tarantool,KlonD90/tarantool,mejedi/tarantool,KlonD90/tarantool,condor-the-bird/tarantool,vasilenkomike/tarantool,dkorolev/tarantool,nvoron23/tarantool,vasilenkomike/tarantool,nvoron23/tarantool,nvoron23/tarantool,nvoron23/tarantool,ocelot-inc/tarantool,guard163/tarantool,ocelot-inc/tarantool,vasilenkomike/tarantool,guard163/tarantool,guard163/tarantool,Sannis/tarantool,vasilenkomike/tarantool