unmk2 / jaxl

Automatically exported from code.google.com/p/jaxl
GNU General Public License v3.0
0 stars 0 forks source link

XMPPSend::endStream #23

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
jaxl 2.1.1 
When XMPPSend::endStream() is called in shutdown, it not always sends last 
stanza </stream:stream> because of buffering in sendXML method.

There should be a way to force buffer sending.
For example: function sendXML($xml, $force=false) {

Original issue reported on code.google.com by a.bas...@gmail.com on 21 Oct 2010 at 2:30

GoogleCodeExporter commented 9 years ago
Hi Bastun,

Indeed this is a valid case where Jaxl internal rate limiter can cause this. 
Modified sendXML($xml, $force=false) seems like a valid enhancement. Shall push 
to master repo after verifying with some test cases. Thanx

Original comment by mailsfor...@gmail.com on 21 Oct 2010 at 4:42

GoogleCodeExporter commented 9 years ago
Hi Bastun,

I have pushed the changes into Jaxl master http://github.com/abhinavsingh/JAXL
Kindly verify and let me know if end Stream packet is still not delivered due 
to internal buffering by Jaxl library.

Original comment by mailsfor...@gmail.com on 22 Oct 2010 at 9:41