From: Albert Schlef Date: 2009-12-24T14:17:09+09:00 Subject: Re: png-file as a HTTP-Response... Robert Murmel wrote: > the browser is getting the file realy slowly > [...] > > server = Thread.start { > while (cl = serverSocket.accept) > [...] > end > } > while (true) > true > end This "while true; end" is known as a "busy loop" (google for this term) and is not CPU-friendly. Perhaps it steals CPU cycles form your working thread. Remove this busy loop and the "server = Thread.start" line and have only this: while (cl = serverSocket.accept) [...] end and see if it solves the problem. -- Posted via http://www.ruby-forum.com/.