We got nominated! Help us out and vote for GitHub as Best Bootstrapped Startup of 2008. (You can vote once a day.) [ hide ]

public
Description: Phusion Passenger (mod_rails)
Homepage: http://www.modrails.com/
Clone URL: git://github.com/FooBarWidget/passenger.git
Click here to lend your support to: passenger and make a donation at www.pledgie.com !
Catch SecurityException correctly
Hongli Lai (Phusion) (author)
Fri Mar 21 08:25:34 -0700 2008
commit  2c0cb438496abd75e01173374eae52f46629b67d
tree    b780a57314ee9e293eea5c1ecac4663d266e85ec
parent  8afe632772c173e0cb9e788b56fb35143bc6164f
...
259
260
261
 
 
 
 
 
262
263
264
...
259
260
261
262
263
264
265
266
267
268
269
0
@@ -259,6 +259,11 @@ private
0
     socket.close
0
   rescue IOError, SocketError, SystemCallError => e
0
     print_exception("Passenger RequestHandler", e)
0
+ rescue SecurityError => e
0
+ STDERR.puts("*** Passenger RequestHandler: HTTP header size exceeded maximum.")
0
+ STDERR.flush
0
+ print_exception("Passenger RequestHandler", e)
0
+ socket.close rescue nil
0
   end
0
   
0
   # Generate a long, cryptographically secure random ID string, which

Comments

    No one has commented yet.