veritrans / SNAP-Magento

MIT License
6 stars 7 forks source link

Does not work as intended with PHP FPM #20

Closed AlexStansfield closed 5 years ago

AlexStansfield commented 5 years ago

Your early response method does not work as intended when using PHP FPM as the connection remains open and the webserver doesn't not send it until the entire request is done.

Consider adding:

fastcgi_finish_request()

here:

https://github.com/veritrans/SNAP-Magento/blob/ff02bd9b7ddb28f075fe80eca0004d29e8fd3fc2/app/code/community/Midtrans/Snap/controllers/PaymentController.php#L301

carolus10benny commented 5 years ago

Please strive to keep the response time of the the HTTP notifications under 5 seconds.