better master/slave init process; more protection to client io buffer
Authored by: lilyco 2010-09-10
Parent: [r485]
Child: [r487]