Open GoogleCodeExporter opened 9 years ago
SocketInputStream.read is blocking when there are no bytes in the buffer. I am
not sure whether the profiler highlights this method because most of the time
the method waits for data from the client or because the method is actually
slow in retrieving available data bytes. Do you think that the clients feed the
data fast enough? If yes, you can try to wrap the input stream with a
BufferedInputStream in the org.subethamail.smtp.server.Session#setSocket
function. In that way SocketInputStream will be called less time.
Original comment by hontvari@flyordie.com
on 5 May 2011 at 1:21
Same here, please add BufferedInputStream around the SocketInputStream. :)
Original comment by jerolimov
on 18 Jul 2011 at 2:33
If you have a performance measurement which shows that BufferedInputStream
brings improved performance than please contribute the result.
Original comment by hontvari@flyordie.com
on 12 Mar 2013 at 12:47
Original comment by hontvari@flyordie.com
on 12 May 2013 at 12:54
Original issue reported on code.google.com by
maxi...@gmail.com
on 5 May 2011 at 12:17Attachments: