-
Notifications
You must be signed in to change notification settings - Fork 77
Chrome: Error 325 (net::ERR_RESPONSE_HEADERS_TOO_BIG): Unknown error. #10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I would be open to implementing anything that FirePHP requires. What would be really cool would be an additional x- header sent on request - of the maximum accepted size of headers in that browser. Perhaps even modify firephp to wait until deconstruct until headers are sent - call get_headers() to calculate the already sent headers, subtract that from the x- header limit, and then truncate? Just spit-balling :) Let me know what I can do to help. |
What you describe is exactly what I imagined. It shouldn't be too much huge I am willing to work on a pull request if the concept is validated by |
I am open to adding the detection of Chrome and limiting the data sent in the PHP library. The limit should be done via an option (like the other options) where the option is automatically set if Chrome is detected. If the option was set by the user it should not be changed. We can call the option |
Just saw the other comments. If you want to look for a |
So I pull requested patches for both FirePHP and FirePHP4Chrome. FirePHP new feature is covered by unit tests (tested with PHPUnit 3.7, PHP 5.4). Hope everyone will agree with my changes and that it will be merged :) |
I have commented on the PRs. This still needs some work. |
I stumbled upon an issue and am waiting for advice to keep working on that PR. See https://github.com/firephp/firephp-core/pull/11/files#r4088176 |
Closing due to lack of interest from core developers. |
I am going to be looking at this later this year. Will be doing an update to FirePHP on server and client. |
…283, #1387) Set server.stream-response-body = 1 or server.stream-response-body = 2 to have lighttpd stream response body to client as it arrives from the backend (CGI, FastCGI, SCGI, proxy). default: buffer entire response body before sending response to client. (This preserves existing behavior for now, but may in the future be changed to stream response to client, which is the behavior more commonly expected.) x-ref: "fastcgi, cgi, flush, php5 problem." https://redmine.lighttpd.net/issues/949 "Random crashing on FreeBSD 6.1" https://redmine.lighttpd.net/issues/760 "Memory usage increases when proxy+ssl+large file" https://redmine.lighttpd.net/issues/1283 "lighttpd+fastcgi memory problem" https://redmine.lighttpd.net/issues/1387
+1 |
@markusp72, I wouldn't hold my breath if I were you and move on to another project. This project has not seen any significant activity in the last 2 years (if not more), and this specific issue was solved in #11, more than 3 years ago, but the maintainers never considered it good enough to be merged. Even though the original code base is really not up to modern standards. |
I am working on a new Web Extension here: https://github.com/firephp/firephp-for-firefox-devtools We can bring this functionality into the new extension and update FirePHPCore as things settle down. I am charging ahead with FirePHP irrespective of other projects (like FirePHP4Chrome) now if that makes any difference. @PowerKiKi I apologize for your frustrating experience (understandably so) contributing to FirePHP. |
Cool! Just to clarify - I did implement the feature we discussed above in FirePHP4Chrome - even though it was just a suggestion. If that particular implementation changes, I'm open to removing the code and applying a different solution. Just been waiting... glad to hear there's some movement here now :) |
Will be solved by: #57 |
It looks like Chrome (used with FirePHP4Chrome) has the lowest limit for headers size according to StackOverflow of 256kb for all headers.
This can quickly be a problem when using
$firephp->trace()
where stacktrace dumps can get huge.The obvious way to solve that, would be to detect the browser and truncate the size of headers, including a warning for developers at the end of logs.
But maybe it could be much cleaner to combine effort with https://github.com/aaronsaray/FirePHP4Chrome and @aaronsaray and introduce a new optional header sent from FirePHP4Chrome, which would trigger a limit on header size.
What would seem the best approach ?
Also see, similar issue (and how they solved it): Seldaek/monolog#172
The text was updated successfully, but these errors were encountered: