avoid to miss read event when pause/resume on udt readstream
fixed udt write critical bug/typo on windows, adding bufsize setting code
fixed udt usage onReadCommon function