[wp-trac] [WordPress Trac] #54246: wp_logout sometimes causes 'upstream sent too big header'

WordPress Trac noreply at wordpress.org
Tue Oct 12 14:15:58 UTC 2021


#54246: wp_logout sometimes causes 'upstream sent too big header'
--------------------------+-----------------------------
 Reporter:  erikdemarco   |      Owner:  (none)
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  General       |    Version:
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 I'm using nginx as a proxy for my wp.

 By default setting for 'fastcgi_buffer_size' is set to 4k.

 If you do a headers_list() during wp_logout. you will see the size is
 almost 3k.

 So if we combine this wp_logout with other hook which also sets couple
 headers. Sometimes this 4k limit reached and blowing out the buffer and
 resulting in a HTTP 500 error. The fix is to increase the
 'fastcgi_buffer_size' setting. But increasing this setting will cause
 unnessasary memory usage for regular use.

 So Its recommended to decrease this huge list of setcookie especially each
 of this is so long.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/54246>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list