# Server

**URL:** https://www.ruby-forum.com/c/server/33.md?page=380

[Latest](https://www.ruby-forum.com/latest.md) · [Categories](https://www.ruby-forum.com/categories.md) · [Tags](https://www.ruby-forum.com/tags.md)

**Page:** 381

---

## [Mongrel and memory usage](https://www.ruby-forum.com/t/mongrel-and-memory-usage/119244)

<div class="topic-metadata">

**Author:** [@tbaustert](https://www.ruby-forum.com/u/tbaustert)\
**Replies:** 29\
**Last updated:** [December 7, 2007, 2:54pm UTC](https://www.ruby-forum.com/t/mongrel-and-memory-usage/119244 "2007-12-07T14:54:37Z")

</div>

Hello, I’m running a Rails application which must sort and manipulate a lot of data which are loaded in memory. The Rails app runs on 2 mongrel processes. When I first load the app, both are 32Mb in memory. After s…

---

## [No matter what I do, Mongrel will not write pid files](https://www.ruby-forum.com/t/no-matter-what-i-do-mongrel-will-not-write-pid-files/122354)

<div class="topic-metadata">

**Author:** [@tripdragon](https://www.ruby-forum.com/u/tripdragon)\
**Replies:** 0\
**Last updated:** [December 6, 2007, 10:09pm UTC](https://www.ruby-forum.com/t/no-matter-what-i-do-mongrel-will-not-write-pid-files/122354 "2007-12-06T22:09:48Z")

</div>

I have been trying to run mongrel\_rails start -e production -p 41740 -P /home/user/railsftpapp/log/mongrel.41740.pid And cluster but it wont make a pid file ! It’s driving me crazy… Cluster verbose mongrel\_rails sta…

---

## [Http phase handler](https://www.ruby-forum.com/t/http-phase-handler/122225)

<div class="topic-metadata">

**Author:** [@Manlio\_P](https://www.ruby-forum.com/u/Manlio_P)\
**Replies:** 5\
**Last updated:** [December 5, 2007, 8:42pm UTC](https://www.ruby-forum.com/t/http-phase-handler/122225 "2007-12-05T20:42:32Z")

</div>

Hi. I’m interested in how HTTP phases handlers works in nginx. I would like to add support, in mod\_wsgi, to NGX\_HTTP\_PREACCESS\_PHASE, NGX\_HTTP\_ACCESS\_PHASE and NGX\_HTTP\_CONTENT\_PHASE. I’m reading the sources but I’m …

---

## [File upload authorization](https://www.ruby-forum.com/t/file-upload-authorization/121897)

<div class="topic-metadata">

**Author:** [@Rapsey](https://www.ruby-forum.com/u/Rapsey)\
**Replies:** 13\
**Last updated:** [December 5, 2007, 7:59pm UTC](https://www.ruby-forum.com/t/file-upload-authorization/121897 "2007-12-05T19:59:09Z")

</div>

A fastcgi application receives an uploaded file only after it has been uploaded, how do you then prevent just anyone (or anything) from uploading a file? thank you, Sergej

---

## [The fair proxy balancer](https://www.ruby-forum.com/t/the-fair-proxy-balancer/121967)

<div class="topic-metadata">

**Author:** [@san](https://www.ruby-forum.com/u/san)\
**Replies:** 4\
**Last updated:** [December 5, 2007, 1:34pm UTC](https://www.ruby-forum.com/t/the-fair-proxy-balancer/121967 "2007-12-05T13:34:52Z")

</div>

This is primarily aimed at Grzegorz N., the author of the “fair” proxy balancer patch for Nginx, but I’m posting this here in case others want to chip in. I posted the following on Ezra Z.'s blog recently, in conjunc…

---

## [Mongrel 1.1.1 Win32 (latest) + Rubygems](https://www.ruby-forum.com/t/mongrel-1-1-1-win32-latest-rubygems/122132)

<div class="topic-metadata">

**Author:** [@A\_R](https://www.ruby-forum.com/u/A_R)\
**Replies:** 2\
**Last updated:** [December 4, 2007, 9:28pm UTC](https://www.ruby-forum.com/t/mongrel-1-1-1-win32-latest-rubygems/122132 "2007-12-04T21:28:30Z")

</div>

Hello all. Hope this doesn’t appear as spam… I am trying to run Mongrel on Win XP (SP2) for a web site (just one at the moment). For some reason it is giving me this error: E:\\web\\app2\>mongrel\_rails start -p 4001 -d …

---

## [What this error means?](https://www.ruby-forum.com/t/what-this-error-means/122098)

<div class="topic-metadata">

**Author:** [@Athan\_D](https://www.ruby-forum.com/u/Athan_D)\
**Replies:** 2\
**Last updated:** [December 4, 2007, 5:30pm UTC](https://www.ruby-forum.com/t/what-this-error-means/122098 "2007-12-04T17:30:35Z")

</div>

In Nginx logs I’ve noticed an error saying “close() socket 5 failed (22: Invalid argument)”. It appears a few times only (2-3 last month) May I ask what’s this error about? I’m running Nginx 5.0.33, PHP fcgi (using un…

---

## [Nginx-0.6.21](https://www.ruby-forum.com/t/nginx-0-6-21/121992)

<div class="topic-metadata">

**Author:** [@imixaly4](https://www.ruby-forum.com/u/imixaly4)\
**Replies:** 3\
**Last updated:** [December 4, 2007, 5:08pm UTC](https://www.ruby-forum.com/t/nginx-0-6-21/121992 "2007-12-04T17:08:53Z")

</div>

Changes with nginx 0.6.21 03 Dec 2007 \*) Change: if variable values used in a "proxy\_pass" directive contain IP-addresses only, then a “resolver” directive is not mandatory. r…

---

## [Customizing 'upstream response is buffered'?](https://www.ruby-forum.com/t/customizing-upstream-response-is-buffered/122097)

<div class="topic-metadata">

**Author:** [@kappa](https://www.ruby-forum.com/u/kappa)\
**Replies:** 1\
**Last updated:** [December 4, 2007, 4:40pm UTC](https://www.ruby-forum.com/t/customizing-upstream-response-is-buffered/122097 "2007-12-04T16:40:39Z")

</div>

In my logs there are plenty of messages like: 2007/12/02 13:54:48 \[warn\] 14318#0: \*66896 an upstream response is buffered to a temporary file /var/cache/nginx/proxy/2/03/0000000032 while reading upstream, client: (…) …

---

## [Non-buffered backend](https://www.ruby-forum.com/t/non-buffered-backend/122015)

<div class="topic-metadata">

**Author:** [@msojka](https://www.ruby-forum.com/u/msojka)\
**Replies:** 2\
**Last updated:** [December 4, 2007, 8:12am UTC](https://www.ruby-forum.com/t/non-buffered-backend/122015 "2007-12-04T08:12:00Z")

</div>

Hi all, First an easy question: what is does the postpone filter do? I can’t find it in the docs. On the next questions: My current understanding of the webserver to send the response goes along the following line…

---

## [Originating Client Request](https://www.ruby-forum.com/t/originating-client-request/122005)

<div class="topic-metadata">

**Author:** [@Paul\_Danter](https://www.ruby-forum.com/u/Paul_Danter)\
**Replies:** 1\
**Last updated:** [December 4, 2007, 2:23am UTC](https://www.ruby-forum.com/t/originating-client-request/122005 "2007-12-04T02:23:36Z")

</div>

Hi, I’m a newbie to Mongrel, so apologies if this is a dumb question. I’m trying to write a Mongrel handler to give my the raw client request, however all I seem to be able to get is the CGI headers using the Mongrel…

---

## [Mod\_wsgi 0.0.5](https://www.ruby-forum.com/t/mod-wsgi-0-0-5/122012)

<div class="topic-metadata">

**Author:** [@Manlio\_P](https://www.ruby-forum.com/u/Manlio_P)\
**Replies:** 0\
**Last updated:** [December 3, 2007, 9:01pm UTC](https://www.ruby-forum.com/t/mod-wsgi-0-0-5/122012 "2007-12-03T21:01:53Z")

</div>

I’m pleased to annunce the 0.0.5 release for mod\_wsgi. mod\_wsgi is an implementation of the WSGI PEP (PEP 333 – Python Web Server Gateway Interface v1.0 | peps.python.org) for the Nginx web server. Here is the changel…

---

## [Load balancer SSL session hooks](https://www.ruby-forum.com/t/load-balancer-ssl-session-hooks/121884)

<div class="topic-metadata">

**Author:** [@gnosek](https://www.ruby-forum.com/u/gnosek)\
**Replies:** 2\
**Last updated:** [December 2, 2007, 12:19pm UTC](https://www.ruby-forum.com/t/load-balancer-ssl-session-hooks/121884 "2007-12-02T12:19:05Z")

</div>

Hello, I have a question about the SSL hooks in load balancer modules, i.e.: #if (NGX\_SSL) ngx\_event\_set\_peer\_session\_pt set\_session; ngx\_event\_save\_peer\_session\_pt save\_session; #endif inside struct ngx\_peer\_…

---

## [SSL hooks in load balancer modules](https://www.ruby-forum.com/t/ssl-hooks-in-load-balancer-modules/121885)

<div class="topic-metadata">

**Author:** [@gnosek](https://www.ruby-forum.com/u/gnosek)\
**Replies:** 1\
**Last updated:** [December 2, 2007, 12:05pm UTC](https://www.ruby-forum.com/t/ssl-hooks-in-load-balancer-modules/121885 "2007-12-02T12:05:01Z")

</div>

Hi all, I have a question about the SSL hooks in upstream support, i.e.: struct ngx\_peer\_connection\_s { /\* … \*/ #if (NGX\_SSL) ngx\_event\_set\_peer\_session\_pt set\_session; ngx\_event\_save\_peer\_session\_pt save\_sess…

---

## [Env directive translation](https://www.ruby-forum.com/t/env-directive-translation/121882)

<div class="topic-metadata">

**Author:** [@Manlio\_P](https://www.ruby-forum.com/u/Manlio_P)\
**Replies:** 0\
**Last updated:** [December 2, 2007, 11:40am UTC](https://www.ruby-forum.com/t/env-directive-translation/121882 "2007-12-02T11:40:59Z")

</div>

I have added the documentation for the env directive: http://wiki.codemongers.com/NginxHttpMainModule#env I have used an online translator, so the result is bad. Can someone who know russian review the translation? I…

---

## [Mod\_wsgi 0.0.4](https://www.ruby-forum.com/t/mod-wsgi-0-0-4/121824)

<div class="topic-metadata">

**Author:** [@Manlio\_P](https://www.ruby-forum.com/u/Manlio_P)\
**Replies:** 1\
**Last updated:** [December 1, 2007, 3:08pm UTC](https://www.ruby-forum.com/t/mod-wsgi-0-0-4/121824 "2007-12-01T15:08:27Z")

</div>

I’m pleased to annunce the 0.0.4 release for mod\_wsgi. mod\_wsgi is an implementation of the WSGI PEP (PEP 333 – Python Web Server Gateway Interface v1.0 | peps.python.org) for the Nginx web server. Starting with this …

---

## [The request record is too big](https://www.ruby-forum.com/t/the-request-record-is-too-big/121191)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 5\
**Last updated:** [December 1, 2007, 1:21pm UTC](https://www.ruby-forum.com/t/the-request-record-is-too-big/121191 "2007-12-01T13:21:35Z")

</div>

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\_s…

---

## [SSL and HTTP 0.9](https://www.ruby-forum.com/t/ssl-and-http-0-9/121821)

<div class="topic-metadata">

**Author:** [@Manlio\_P](https://www.ruby-forum.com/u/Manlio_P)\
**Replies:** 2\
**Last updated:** [December 1, 2007, 12:24pm UTC](https://www.ruby-forum.com/t/ssl-and-http-0-9/121821 "2007-12-01T12:24:39Z")

</div>

Hi. An user (symlynX) on the nginx IRC channel at Freenode reported that an HTTPS server returns unencrypted pages when a plain HTTP 0.9 request is received. He claims that this is a security problem, but I disagree …

---

## [Typo in mail/ngx\_mail.h](https://www.ruby-forum.com/t/typo-in-mail-ngx-mail-h/121779)

<div class="topic-metadata">

**Author:** [@Manlio\_P](https://www.ruby-forum.com/u/Manlio_P)\
**Replies:** 1\
**Last updated:** [November 30, 2007, 11:30pm UTC](https://www.ruby-forum.com/t/typo-in-mail-ngx-mail-h/121779 "2007-11-30T23:30:38Z")

</div>

Igor, there is a probable typo in mail/ngx\_mail.h: ngx\_po3\_state\_e ==\> ngx\_pop3\_state\_e Manlio P.

---

## [Nginx-0.6.18](https://www.ruby-forum.com/t/nginx-0-6-18/121401)

<div class="topic-metadata">

**Author:** [@imixaly4](https://www.ruby-forum.com/u/imixaly4)\
**Replies:** 5\
**Last updated:** [November 30, 2007, 11:25pm UTC](https://www.ruby-forum.com/t/nginx-0-6-18/121401 "2007-11-30T23:25:20Z")

</div>

Changes with nginx 0.6.18 27 Nov 2007 \*) Change: now the ngx\_http\_userid\_module adds start time microseconds to the cookie field contains a pid value. \*) Change: now the full …

---

## [Nginx-0.6.20](https://www.ruby-forum.com/t/nginx-0-6-20/121542)

<div class="topic-metadata">

**Author:** [@imixaly4](https://www.ruby-forum.com/u/imixaly4)\
**Replies:** 12\
**Last updated:** [November 30, 2007, 3:57pm UTC](https://www.ruby-forum.com/t/nginx-0-6-20/121542 "2007-11-30T15:57:33Z")

</div>

Changes with nginx 0.6.20 28 Nov 2007 \*) Bugfix: a segmentation fault might occur in worker process if a "proxy\_pass" directive with URI-part was used; bug appeared in 0.6.1…

---

## [Bug in fastcgi\_catch\_stderr directive](https://www.ruby-forum.com/t/bug-in-fastcgi-catch-stderr-directive/121685)

<div class="topic-metadata">

**Author:** [@Manlio\_P](https://www.ruby-forum.com/u/Manlio_P)\
**Replies:** 0\
**Last updated:** [November 29, 2007, 10:39pm UTC](https://www.ruby-forum.com/t/bug-in-fastcgi-catch-stderr-directive/121685 "2007-11-29T22:39:37Z")

</div>

I have reported the problem in a previous message, but since it is still present in latest nginx release (0.6.20) I’m reporting it again. A segmentation fail occurs when using the fastcgi\_catch\_stderr directive. Manl…

---

## [Monitoring for load balancing](https://www.ruby-forum.com/t/monitoring-for-load-balancing/121442)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 2\
**Last updated:** [November 29, 2007, 1:06pm UTC](https://www.ruby-forum.com/t/monitoring-for-load-balancing/121442 "2007-11-29T13:06:10Z")

</div>

hi am using nginx with multiple fastcgi backends… is there any way i can monitor how the load is distributed to the backends? i am using nginx\_status… but that does not show any status about the backends? locati…

---

## [Worker\_cpu\_affinity](https://www.ruby-forum.com/t/worker-cpu-affinity/121432)

<div class="topic-metadata">

**Author:** [@cliffwiggs](https://www.ruby-forum.com/u/cliffwiggs)\
**Replies:** 4\
**Last updated:** [November 29, 2007, 9:21am UTC](https://www.ruby-forum.com/t/worker-cpu-affinity/121432 "2007-11-29T09:21:09Z")

</div>

Hi, I’m running a dual processor (Athlon MP) server. Gentoo Linux. Nginx is 0.6.16. In nginx.com I have: worker\_processes 2; worker\_cpu\_affinity 0001 0010; But I see in my error log the following: 200…

---

## [Phantom event for closed and removed socket](https://www.ruby-forum.com/t/phantom-event-for-closed-and-removed-socket/121585)

<div class="topic-metadata">

**Author:** [@Andrew\_Deason](https://www.ruby-forum.com/u/Andrew_Deason)\
**Replies:** 1\
**Last updated:** [November 29, 2007, 8:34am UTC](https://www.ruby-forum.com/t/phantom-event-for-closed-and-removed-socket/121585 "2007-11-29T08:34:20Z")

</div>

I’m running nginx 0.5.32 on a box running Solaris 10u3 as a load-balancing reverse proxy. We’re seeing a lot of these messages in nginx-error.log: 2007/11/28 19:37:15 \[alert\] 27779#0: phantom event 0001 for closed and …

---

## [Help! problem with mongrel, request.remote\_ip and lighttpd](https://www.ruby-forum.com/t/help-problem-with-mongrel-request-remote-ip-and-lighttpd/121126)

<div class="topic-metadata">

**Author:** [@Rajiv\_S](https://www.ruby-forum.com/u/Rajiv_S)\
**Replies:** 4\
**Last updated:** [November 29, 2007, 6:14am UTC](https://www.ruby-forum.com/t/help-problem-with-mongrel-request-remote-ip-and-lighttpd/121126 "2007-11-29T06:14:39Z")

</div>

I have an existing rails application on lighttpd and I am trrying to upgrade to mongrel for the enhanced scalability it offers. I am running mongrel 1.1.1, rails 1.2.5, lighttpd 1.4.13 and ruby 1.8.5 Everything is wo…

---

## [Should upstream backends be disabled if they are down?](https://www.ruby-forum.com/t/should-upstream-backends-be-disabled-if-they-are-down/121458)

<div class="topic-metadata">

**Author:** [@ezra\_z](https://www.ruby-forum.com/u/ezra_z)\
**Replies:** 0\
**Last updated:** [November 28, 2007, 5:29am UTC](https://www.ruby-forum.com/t/should-upstream-backends-be-disabled-if-they-are-down/121458 "2007-11-28T05:29:09Z")

</div>

Hi Folks- I’m seeing some odd behavior with proxied backends. I had a cluster of 4 mongrels behind an nginx server with 4 entires in the upstream block. I took one of these mongrels down but did not change the upstre…

---

## [Ngx\_write\_chain\_to\_temp\_file and NGX\_AGAIN](https://www.ruby-forum.com/t/ngx-write-chain-to-temp-file-and-ngx-again/121412)

<div class="topic-metadata">

**Author:** [@Manlio\_P](https://www.ruby-forum.com/u/Manlio_P)\
**Replies:** 1\
**Last updated:** [November 27, 2007, 9:46pm UTC](https://www.ruby-forum.com/t/ngx-write-chain-to-temp-file-and-ngx-again/121412 "2007-11-27T21:46:49Z")

</div>

Hi. I’m reading the code for writing a temporary buffer in a temporary file, and I have noted something not very clear. Here is the code (core/ngx\_file.c): ngx\_write\_chain\_to\_temp\_file(ngx\_temp\_file\_t \*tf, ngx\_chain\_…

---

## [Wiki outage](https://www.ruby-forum.com/t/wiki-outage/121414)

<div class="topic-metadata">

**Author:** [@cliffwiggs](https://www.ruby-forum.com/u/cliffwiggs)\
**Replies:** 0\
**Last updated:** [November 27, 2007, 7:36pm UTC](https://www.ruby-forum.com/t/wiki-outage/121414 "2007-11-27T19:36:39Z")

</div>

As I’m sure someone noticed, the wiki was down for a few hours. It’s fixed now. Sorry for the inconvenience. Cliff

---

## [Nginx-0.6.19](https://www.ruby-forum.com/t/nginx-0-6-19/121404)

<div class="topic-metadata">

**Author:** [@imixaly4](https://www.ruby-forum.com/u/imixaly4)\
**Replies:** 0\
**Last updated:** [November 27, 2007, 6:06pm UTC](https://www.ruby-forum.com/t/nginx-0-6-19/121404 "2007-11-27T18:06:13Z")

</div>

Changes with nginx 0.6.19 27 Nov 2007 \*) Bugfix: the 0.6.18 version could not be built.

[Previous page](https://www.ruby-forum.com/c/server/33.md?page=379)

[Next page](https://www.ruby-forum.com/c/server/33.md?page=381)
