[Toolserver-l] Two beginner questions
River Tarnell
river.tarnell at wikimedia.de
Thu Dec 9 16:09:40 UTC 2010
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Sumurai8 (DD):
> text = IRC.recv(1024)
> msgs = text.split('\n')
This seems to have a bug: if there's more than 1024 bytes waiting, you could
receive only part of the final message; so you will truncate that message, and
the next recv will receive the other half (which will then be effectively
junk).
- river.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (FreeBSD)
iEYEARECAAYFAk0A/0QACgkQIXd7fCuc5vKX8QCeKN77J7YXVJaO5utUVMyxCC5a
ubsAnR/+E/8WtjZuD1Qrc78S5v68ZQ5/
=z4ru
-----END PGP SIGNATURE-----
More information about the Toolserver-l
mailing list