I'm not even sure why it works with the alert. I'd think unconditionally reading 512 bytes from the stream every time around the loop is bad, because you have no guarantee that that many bytes are available (you only know at least one byte's available), and since you've opened the stream in blocking mode it's going to sit there until 512 bytes can be read or the connection is closed -- but then your writes to the output stream will fail.
Jeff _______________________________________________ dev-tech-network mailing list [email protected] https://lists.mozilla.org/listinfo/dev-tech-network
