change buffer size from 1000 bytes to 1024 bytes 

Why set receive and send buffer size to <n>*1000 bytes, i think it
should be <n>*1024 bytes.