[转载] smtp server in java?# Java - 爪哇娇娃
c*t
1 楼
【 以下文字转载自 Programming 讨论区 】
【 原文由 coldstart 所发表 】
My program:
Using thread for each connention.
Using BufferedInputStream and BufferedReader to get message from client.
Using readLine() to get each line from client.
Problem:
When there are attachments coming in. SMTP server receive them very slowly.
If I increase the buffer size, that will be fine for one email with big
attachment.
But don't work on a lot of email coming in at once. The error is Outofmemory.
What shall I do to increase the speed
【 原文由 coldstart 所发表 】
My program:
Using thread for each connention.
Using BufferedInputStream and BufferedReader to get message from client.
Using readLine() to get each line from client.
Problem:
When there are attachments coming in. SMTP server receive them very slowly.
If I increase the buffer size, that will be fine for one email with big
attachment.
But don't work on a lot of email coming in at once. The error is Outofmemory.
What shall I do to increase the speed