Demo Discussion
Forum Config Examples Contributions Vulnerabilities
  Discussion forum about ELOG, Page 212 of 808  Not logged in ELOG logo
    icon2.gif   Re: large attachment seems to hang elogd?, posted by Jacky Li on Wed Oct 31 22:33:49 2007 
Hi,

I am having the same problem with 2.6.4.1 and the latest version. It just hangs and taking a long time to upload multiple of 1.5 to 2 MB attachments...or just one few MB attachment. Hope that's a fix soon.
    icon2.gif   Re: large attachment seems to hang elogd?, posted by Jacky Li on Wed Oct 31 22:39:54 2007 
Hi,

I did more testing..if I suppress email notification, it is fast. There is something wrong there.



Jacky Li wrote:
Hi,

I am having the same problem with 2.6.4.1 and the latest version. It just hangs and taking a long time to upload multiple of 1.5 to 2 MB attachments...or just one few MB attachment. Hope that's a fix soon.
    icon2.gif   Re: large attachment seems to hang elogd?, posted by Jacky Li on Wed Oct 31 22:44:06 2007 
Ok,

I noticed that the email notification got two copies of the attached files to elog post. It looks like the cause is
between elog and the mail server. When there is email notification, the attachement is sent along to the mail server and that's taking a long time and there are two copies of the attachment.


Jacky Li wrote:
Hi,

I did more testing..if I suppress email notification, it is fast. There is something wrong there.
    icon2.gif   Re: large attachment seems to hang elogd?, posted by Konrad Klimaszewski on Mon Nov 5 14:00:56 2007 
Hi,


Jacky Li wrote:
Ok,

I noticed that the email notification got two copies of the attached files to elog post. It looks like the cause is
between elog and the mail server. When there is email notification, the attachement is sent along to the mail server and that's taking a long time and there are two copies of the attachment.


Jacky Li wrote:
Hi,

I did more testing..if I suppress email notification, it is fast. There is something wrong there.



Indeed I can confirm that without email notification it's blazing fast. I haven't observed attachments being send twice. Though I got two indentical entries in the elog.

On my box I'm using sendmail. Until there is some fix in the way elog comunicates with mailer (if it is possible that is) could we have an option to suppress sending attachments in email notification?

Best Regards,
Konrad
    icon2.gif   Re: large attachment seems to hang elogd?, posted by Stefan Ritt on Mon Nov 5 14:06:41 2007 

Konrad Klimaszewski wrote:
Until there is some fix in the way elog comunicates with mailer (if it is possible that is) could we have an option to suppress sending attachments in email notification?


There is such an option:
Email format = 47

This tells elog to send email notifications without attachments. Anyhow I would not recommend to send big attachments as emails, since most email systems won't allow you that. Since the attachments are base64 encoded, the encoding can also take quite a long time.
    icon2.gif   Re: large attachment seems to hang elogd?, posted by Konrad Klimaszewski on Mon Nov 5 14:15:55 2007 

Stefan Ritt wrote:

Konrad Klimaszewski wrote:
Until there is some fix in the way elog comunicates with mailer (if it is possible that is) could we have an option to suppress sending attachments in email notification?


There is such an option:
Email format = 47

This tells elog to send email notifications without attachments. Anyhow I would not recommend to send big attachments as emails, since most email systems won't allow you that. Since the attachments are base64 encoded, the encoding can also take quite a long time.


Great Smile. I missed this one while digging through documentation.
Maybe you could consider setting as default:
Email format = 111

Cheers,
Konrad
    icon2.gif   Re: large attachment seems to hang elogd?, posted by Stefan Ritt on Mon Nov 5 14:20:27 2007 

Konrad Klimaszewski wrote:
Great Smile. I missed this one while digging through documentation.
Maybe you could consider setting as default:
Email format = 111


Well, then people will come up and ask: I can see some attachment name in my email, but the attachment is missing, what can I do?. So they would not find the configuration option as you did not, and complain here. You never can make everybody happy Frown

An alternative approach however would be to limit the attachment size. If above 1 MB for example, do not send it. Then make this a flexible parameter (maybe someone wants 2 MB). I will think about that.
    icon2.gif   Re: large attachment seems to hang elogd?, posted by Konrad Klimaszewski on Mon Nov 5 14:34:31 2007 

Stefan Ritt wrote:

Konrad Klimaszewski wrote:
Great Smile. I missed this one while digging through documentation.
Maybe you could consider setting as default:
Email format = 111


Well, then people will come up and ask: I can see some attachment name in my email, but the attachment is missing, what can I do?. So they would not find the configuration option as you did not, and complain here. You never can make everybody happy Frown

An alternative approach however would be to limit the attachment size. If above 1 MB for example, do not send it. Then make this a flexible parameter (maybe someone wants 2 MB). I will think about that.


Of course you're right. I suggested using "111" because then in email notification there is a link to the attachment.
Which for me is enough Smile. But there always will be someone that's not happy.

Your solution is nice but then attachments will be sent in a bit inconsistent way.
Easier would be to make it more obvious in the documentation.
I don't know put it in the FAQ or something (under: "Why my posts with large attachments are submitted so slowly" Wink).

Best Regards,
Konrad

PS
Thanks for implementing ELCode for tables - love them Big grin
ELOG V3.1.5-3fb85fa6