hhvm icon indicating copy to clipboard operation
hhvm copied to clipboard

fgets on smtp port results in 504 timeout

Open mingtse opened this issue 12 years ago • 9 comments

Connecting to smtp using phpmailer is extremely slow, and, the server returns 504 timeout. The culprit seems to be fgets being very slow.

I experience this issue when using Wordpress, wp-mail-smtp plugin, and configure to a valid smtp server.

mingtse avatar Feb 17 '14 04:02 mingtse

Which version of hhvm do you use?

staabm avatar Feb 17 '14 07:02 staabm

I am using HHVM fastcgi mode on ubuntu 12.04 LTS.

HipHop VM 2.5.0-dev+2014.02.16 (rel) Compiler: heads/master-0-gc1ad358ae8b45a2a89ca9c91c0549a3cc1c13776 Repo schema: ff4d3213ead6901fd11d8f0af8fd374fd1b9a93a

On Mon, Feb 17, 2014 at 2:04 AM, Markus Staab [email protected]:

Which version of hhvm do you use?

Reply to this email directly or view it on GitHubhttps://github.com/facebook/hhvm/issues/1842#issuecomment-35232862 .

mingtse avatar Feb 17 '14 17:02 mingtse

Thanks for reporting this. Feel free to submit a PR if you (or someone else reading this) gets to this before we do.

scannell avatar Feb 18 '14 16:02 scannell

@scannell when are you planning to get to it?

Jaspur avatar May 11 '14 19:05 Jaspur

A php snippet to reproduce the issue would help a lot.

staabm avatar May 11 '14 19:05 staabm

I'm using Laravel for sending emails with Mailgun. Here ou can find some quick snippets: http://documentation.mailgun.com/quickstart.html#sending-messages or install Laravel and configure smtp via mailgun.

Jaspur avatar May 11 '14 19:05 Jaspur

@Jaspur you can expect that things get fixed faster in case you provide a as small as possible script which demonstrates the issue. Its very unlikely that someone will read the docs of this libary, sets up a example project to reproduce your issue.

staabm avatar May 11 '14 19:05 staabm

2.5 is a /very/ old release; does this problem still exist in 3.3? If so, it's much more likely to be addressed if a small isolated example of the problem (that doesn't depend on Laravel/Mailgun) is added.

fredemmott avatar Sep 22 '14 21:09 fredemmott

2 weeks passed, closing (https://github.com/facebook/hhvm/wiki/Human-Timeouts)

If you retry this with 3.3 and find that it's still broken please reopen the issue.

paulbiss avatar Oct 21 '14 00:10 paulbiss