Promblem with sending long chat message

When sending long chat message for the first time after login , if Icompress the sending data ,the client alway disconnect from openfire server automatically. I use same client login ejabberd server,and send the same message which is also compressed, but the client doesn’t disconnect. And if i sending message data directly without compressing, the disconnecting phenomena doesn’t happen. If there is some problem with openfire’s decompress algorithm.