From: "Kontra, Gergely" Date: 2002-05-24T00:14:14+09:00 Subject: Re: thread-safe socket? >|I've written a program, and realizes, that socket.puts is not thread >|safe. >|(the "\n" appended can be sent out separate) >|Is this a known bug, or sockets are not claimed to be thread safe? > >Socket methods do not claim they are atomic. You should protect the >socket using mutex. Thx, done so, but what about standard IO? files, stdout? Gergo +-[Kontra, Gergely @ Budapest University of Technology and Economics]-+ | Email: kgergely@mcl.hu, kgergely@turul.eet.bme.hu | | URL: turul.eet.bme.hu/~kgergely Mobile: (+36 20) 356 9656 | +-------"Olyan langesz vagyok, hogy poroltoval kellene jarnom!"-------+ . Magyar php mirror es magyar php dokumentacio: http://hu.php.net