Skip to content
This repository has been archived by the owner on Dec 15, 2021. It is now read-only.

truncated XML sent to server #37

Closed
Jajcus opened this issue May 3, 2011 · 1 comment
Closed

truncated XML sent to server #37

Jajcus opened this issue May 3, 2011 · 1 comment

Comments

@Jajcus
Copy link
Owner

Jajcus commented May 3, 2011

PyXMPP doesn't check the return code of socket.send (in streambase.py and streamtls.py) which could result in truncated data being sent to the server. See the documentation for socket.send: "Returns the number of bytes sent. Applications are responsible for checking that all data has been sent; if only some of the data was transmitted, the application needs to attempt delivery of the remaining data."

@Jajcus
Copy link
Owner Author

Jajcus commented May 3, 2011

Oh… how could I miss that

--jajcus

@Jajcus Jajcus closed this as completed in eb2e61c May 8, 2011
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant