Re: relayd and large POST requests

2023-10-25 Thread Erwin Geerdink
> before going any deeper in investigating the behaviour I would suggest > to configure this setup with using redirection. > I think you are better with just forwarding on layer 3. > > Or did I miss something? Why did you choose relay here? relayd is used here as tls termination proxy, since var

Re: relayd and large POST requests

2023-10-24 Thread Michael Hekeler
> Hi, > > I'm running a setup on OpenBSD 7.3 (amd64, 16GB RAM) with relayd, > varnish, httpd and php-fpm. When uploading a large >2GB file through > ... > > > /etc/relayd.conf: > > table { 127.0.0.1 } > > log connection > > http protocol "https" { > tls keypair "server" > ret

Re: relayd and large POST requests

2023-10-22 Thread Erwin Geerdink
> Actually I can't be sure this the origin of your problem, but the > value of "memory_limit" is wrong. Thank you, I increased php memory limit but the problem persists unfortunately. In fact this 3000M file upload freezes our 16G machine even when there is no other workload, so that's a signifi

Re: relayd and large POST requests

2023-10-21 Thread Daniele B.
Actually I can't be sure this the origin of your problem, but the value of "memory_limit" is wrong. >From the doc: https://www.php.net/manual/en/ini.core.php#ini.post-max-size post_max_size int Sets max size of post data allowed. This setting also affects file upload. To upload large files,

Re: relayd and large POST requests

2023-10-21 Thread Erwin Geerdink
> Can you post from your php.ini what you did set for the following > values? php.ini: upload_max_filesize = 4096M post_max_size = 4096M memory_limit = 256M max_execution_time = 300 httpd.conf: connection { max request body 4294967296 # 4096M } I'm able to reproduce the problem locally wi

Re: relayd and large POST requests

2023-10-21 Thread Daniele B.
Can you post from your php.ini what you did set for the following values? upload_max_filesize = post_max_size = memory_limit = Despite the allocation memory problem (from the error message) I would also suggest you to double check %request timeout% settings starting from php.ini: max_executi

relayd and large POST requests

2023-10-21 Thread Erwin Geerdink
Hi, I'm running a setup on OpenBSD 7.3 (amd64, 16GB RAM) with relayd, varnish, httpd and php-fpm. When uploading a large >2GB file through our web application, *occassionally* relayd starts to consume an increasing amount of memory (as observed with top) until it hits resource limits from login.co