These are chat archives for fanout/pushpin

24th
Apr 2018
krishnaaravacadreon
@krishnaaravacadreon
Apr 24 2018 16:18
Hi, is there any restriction on size of the header? Our header value for JWT x-jwt-assertion has a very long value. I need to preserve it, tried using "orig_headers"
When I send such request, pushpin throws me 400 - "Bad Request"
krishnaaravacadreon
@krishnaaravacadreon
Apr 24 2018 16:24

This is the error I get in error_logs when debug mode is enabled.

Tue, 24 Apr 2018 16:24:08 GMT [ERROR] (src/connection.c:1289: errno: Resource temporarily unavailable) Too many small packet read attempts.

Justin Karneges
@jkarneges
Apr 24 2018 18:30
hi @krishnaaravacadreon . good question. that particular error has to do with number of reads on the socket rather than actual header size. how big is the header?
btw, orig_headers is unrelated. that's for preserving very special headers that might need to be changed when proxying (such as Connection) but it doesn't have any effect on limits
krishnaaravacadreon
@krishnaaravacadreon
Apr 24 2018 20:03
@jkarneges header size is 4kb, I know thats bad but its something we been using with other proxy server like Nginx / Spring Zuul.
Justin Karneges
@jkarneges
Apr 24 2018 21:42
@krishnaaravacadreon you might try tweaking mongrel2's limits.buffer_size setting http://mongrel2.org/manual/book-finalch4.html#x6-400003.10 looks like default is 2K
you can modify mongrel2.conf.template, in the settings {} section