MindscapeHQ/raygun4php

Async auto-off on windows?

Closed this issue · 4 comments

The docs state "For Windows, false is the only effective option available due to a bug in SSL sending on IIS with certain versions of PHP. Passing in true will do nothing on this platform."

But I run Apache on my local Windows machine not IIS. Is this bug an IIS bug or a Windows bug? (the code check the OS string, not the web server)

I use lots of SSL api calls from my code so I know SSL works on Windows + Apache.

I haven't tried Raygun yet. I'd just like some clarification on the nature of the bug (I'm currently exploring error loggers). Thanks.

Thanks for bringing this to our attention. I've had a preliminary investigation into taking another approach and it looks as though this restriction may be able to be removed if it is successful. I will get back to you with the results of this in the next couple of days.

To assist with this could you please post your versions for PHP, Apache and Windows.

Cheers,

Callum

Windows 7 Ultimate Edition Service Pack 1
apache2.2.22
PHP Version 5.3.13
OpenSSL 1.0.1c 10 May 2012

I've had a look into this, and the good news is I've managed to get the forked cURL method working (on my Win 8.1 PHP 5.3 environment), so the feature should eventually be possible in some form. Unfortunately, due to Windows limitations, namely the 8kb command line argument limit, curl.exe breaks on large JSON payloads. I've looked into providing the payload as a file argument, but this poses additional challenges regarding the deletion of the temp file when the background sending is complete.

As such windows async requires additional work, and for now I'm sticking with the stream_socket_client method for that platform. I will revisit this shortly with an eye to provide a robust, scalable async feature on Windows.

Closing this issue for now. If you wish to see this issue addressed please create a new issue or post within our forums (https://raygun.com/forums). Thank you.