# Errno::E232 (The pipe is being closed.)

**URL:** <https://www.ruby-forum.com/t/errno-e232-the-pipe-is-being-closed/49608>\
**Category:** Rails\
**Created:** [December 6, 2005, 8:56pm UTC](https://www.ruby-forum.com/t/errno-e232-the-pipe-is-being-closed/49608 "2005-12-06T20:56:52Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![MrSHeinz](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/bc79bd/32.png) [@MrSHeinz](https://www.ruby-forum.com/u/MrSHeinz)\
**Post date:** [December 6, 2005, 8:56pm UTC](https://www.ruby-forum.com/t/errno-e232-the-pipe-is-being-closed/49608/1 "2005-12-06T20:56:52Z")

</div>

I get this error on occasion using both Webrick and Apache2/FCGI:

Webrick Debug:

[06/Dec/2005:07:46:19 :: 216] Dispatcher failed to catch: The pipe is  
being closed. (Errno::E232)  
[06/Dec/2005:07:46:19 :: 216] Dispatcher failed to catch: The pipe is  
being closed. (Errno::E232)  
C:/MyApp/Server/public/…/config/…/vendor/rails/actionpack/lib/action\_controller/cgi\_process.rb:158:in  
`flush' C:/MyApp/Server/public/../config/../vendor/rails/actionpack/lib/action_controller/cgi_process.rb:158:in`out’  
C:/MyApp/Server/public/…/config/…/vendor/rails/railties/lib/dispatcher.rb:34:in  
`dispatch' C:/MyApp/Server/public/../config/../vendor/rails/railties/lib/fcgi_handler.rb:144:in`process\_request’  
C:/MyApp/Server/public/…/config/…/vendor/rails/railties/lib/fcgi\_handler.rb:64:in  
`process!' C:/MyApp/Server/public/../config/../vendor/rails/railties/lib/fcgi_handler.rb:55:in`each\_cgi’  
C:/program files/ruby/lib/ruby/site\_ruby/1.8/fcgi.rb:595:in `each' C:/program files/ruby/lib/ruby/site_ruby/1.8/fcgi.rb:595:in`each\_cgi’  
C:/MyApp/Server/public/…/config/…/vendor/rails/railties/lib/fcgi\_handler.rb:55:in  
`process!' C:/MyApp/Server/public/../config/../vendor/rails/railties/lib/fcgi_handler.rb:21:in`process!’  
C:/MyApp/Server/public/dispatch.fcgi:24

* * *

Apache2/FCGI debug:

Errno::E232 (The pipe is being closed.):  
C:/program  
files/ruby/lib/ruby/gems/1.8/gems/actionpack-1.11.0/lib/action\_controller/cgi\_process.rb:161:in  
`flush' C:/program files/ruby/lib/ruby/gems/1.8/gems/actionpack-1.11.0/lib/action_controller/cgi_process.rb:161:in`out’  
C:/program  
files/ruby/lib/ruby/gems/1.8/gems/rails-0.14.3/lib/dispatcher.rb:38:in  
`dispatch' C:/program files/ruby/lib/ruby/gems/1.8/gems/rails-0.14.3/lib/fcgi_handler.rb:141:in`process\_request’  
C:/program  
files/ruby/lib/ruby/gems/1.8/gems/rails-0.14.3/lib/fcgi\_handler.rb:53:in  
`process!' C:/program files/ruby/lib/ruby/gems/1.8/gems/rails-0.14.3/lib/fcgi_handler.rb:52:in`each\_cgi’  
C:/program files/ruby/lib/ruby/site\_ruby/1.8/fcgi.rb:595:in `each' C:/program files/ruby/lib/ruby/site_ruby/1.8/fcgi.rb:595:in`each\_cgi’  
C:/program  
files/ruby/lib/ruby/gems/1.8/gems/rails-0.14.3/lib/fcgi\_handler.rb:52:in  
`process!' C:/program files/ruby/lib/ruby/gems/1.8/gems/rails-0.14.3/lib/fcgi_handler.rb:22:in`process!’  
C:/MyApp/Server/public/dispatch.fcgi:24

* * *

This issue is random and seems to happen when multiple asynchronous  
requests are sent to the server. I figured at first this was a  
apache/fcgi config error but since I get a similar error using webrick  
it sort of rules that out. Anyone have any ideas of where to start to  
looking to correct this issue?

Thanks!

---

<div class="post-metadata">

**Author:** ![MrSHeinz](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/bc79bd/32.png) [@MrSHeinz](https://www.ruby-forum.com/u/MrSHeinz)\
**Post date:** [December 6, 2005, 9:03pm UTC](https://www.ruby-forum.com/t/errno-e232-the-pipe-is-being-closed/49608/2 "2005-12-06T21:03:24Z")

</div>

I forgot to include this:

The apache2/logs/error.log generates an entry as follows when this error  
is encountered:

[Tue Dec 06 11:34:59 2005] [error] [client 192.168.1.85] FastCGI: comm  
with (dynamic) server “C:/MyApp/Server/public/dispatch.fcgi” aborted:  
(first read) idle timeout (30 sec)  
[Tue Dec 06 11:34:59 2005] [error] [client 192.168.1.85] FastCGI:  
incomplete headers (0 bytes) received from server  
“C:/MyApp/Server/public/dispatch.fcgi”

This is understandable given the pipe was closed but figured I would  
include this information as well.

---

<div class="post-metadata">

**Author:** ![MrSHeinz](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/bc79bd/32.png) [@MrSHeinz](https://www.ruby-forum.com/u/MrSHeinz)\
**Post date:** [October 3, 2006, 9:58pm UTC](https://www.ruby-forum.com/t/errno-e232-the-pipe-is-being-closed/49608/3 "2006-10-03T21:58:59Z")

</div>

I am getting the same error, can somebody please help?

Thanks,

Mr. Heinz [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> I forgot to include this:
> 
> The apache2/logs/error.log generates an entry as follows when this error  
> is encountered:
> 
> [Tue Dec 06 11:34:59 2005] [error] [client 192.168.1.85] FastCGI: comm  
> with (dynamic) server “C:/MyApp/Server/public/dispatch.fcgi” aborted:  
> (first read) idle timeout (30 sec)  
> [Tue Dec 06 11:34:59 2005] [error] [client 192.168.1.85] FastCGI:  
> incomplete headers (0 bytes) received from server  
> “C:/MyApp/Server/public/dispatch.fcgi”
> 
> This is understandable given the pipe was closed but figured I would  
> include this information as well.

---

<div class="post-metadata">

**Author:** ![MrSHeinz](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/bc79bd/32.png) [@MrSHeinz](https://www.ruby-forum.com/u/MrSHeinz)\
**Post date:** [August 25, 2008, 4:24pm UTC](https://www.ruby-forum.com/t/errno-e232-the-pipe-is-being-closed/49608/4 "2008-08-25T16:24:06Z")

</div>

I too am getting the same error in apache with fastcgi. Any ideas?

---

<div class="post-metadata">

**Author:** ![MrSHeinz](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/bc79bd/32.png) [@MrSHeinz](https://www.ruby-forum.com/u/MrSHeinz)\
**Post date:** [September 10, 2008, 6:35am UTC](https://www.ruby-forum.com/t/errno-e232-the-pipe-is-being-closed/49608/5 "2008-09-10T06:35:26Z")

</div>

Chris M. wrote:

> I too am getting the same error in apache with fastcgi. Any ideas?

I’m having the same error too. Have any luck on solving this?
