Fixed typo
Fixed receiving large message stanzas

For stanza sizes larger than the buffer size
fixed waitForServer and its usage