the request record is too big

Igor Sysoev is at rambler-co.ru
Sat Dec 1 15:15:10 MSK 2007


On Sat, Nov 24, 2007 at 05:08:00PM -0800, rkmr.em at gmail.com wrote:

> i get this in my error log:
> 
> 2007/11/25 00:52:24 [alert] 14268#0: *17156 fastcgi: the request record is
> too big, client: 204.15.23.168, server: localhost, URL: "/start?fb_sig_time=
> 1195951944.2615&fb_sig_added=1&fb_sig_session_key=f256886dd126f89dc72d9a6b-532559347&fb_sig_profile_update_time=1192712470&fb_sig_position_fix=0&fb_sig_user=532559347&fb_sig_expires=0&fb_sig=2868fb07f94b463f2d0950616094bbdf&fb_sig_api_key=d986f51fdd54acd4b26ccec75056aa25&fb_sig_friends=4711167%2C48300803%2C506840685%2C509158903%2C514282517%2C518501290%2C518751146%2C522135924%2C529596555%2C530467428%2C532045381%2C533925897%2C552413754%2C560512188%2C560918318%2C571236034%2C571560448%2C571655806%2C572481866%2C581388045%2C585140874%2C586256901%2C587180990%2C592871233%2C593017544%2C596111057%2C607812128%2C608338110%2C608648740%2C609136633%2C624457120%2C634132775%2C640874287%2C650661239%2C650663105%2C652620473%2C653611961%2C655450917%2C655731226%2C664067817%2C688266120%2C690980690%2C691471684%2C700335169%2C700576103%2C710666056%2C713512160%2C719541234%2C720808355%2C722805149%2C724561238%2C724607723%2C738516279%2C742985694%2C752953834%2C754068600%2C791348277%2C827690084&fb_sig_in_ca
>  nvas=1",
> host: "x.x.x.x:8089"

The attached patch should fix the bug.


-- 
Igor Sysoev
http://sysoev.ru/en/
-------------- next part --------------
Index: src/http/ngx_http_request.c
===================================================================
--- src/http/ngx_http_request.c	(revision 995)
+++ src/http/ngx_http_request.c	(working copy)
@@ -1154,6 +1154,10 @@
             r->args_start = new + (r->args_start - old);
         }
 
+        if (r->http_protocol.data) {
+            r->http_protocol.data = new + (r->http_protocol.data - old);
+        }
+
     } else {
         r->header_name_start = new;
         r->header_name_end = new + (r->header_name_end - old);


More information about the nginx mailing list