ruby-lsapi 3.2 → 3.3

Sign up to get free protection for your applications and to get access to all the features.
File without changes
File without changes
data/ext/lsapi/lsapilib.c CHANGED
@@ -55,7 +55,9 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
55
55
  #include <stdio.h>
56
56
  #include <string.h>
57
57
  #include <sys/mman.h>
58
+ #include <sys/resource.h>
58
59
  #include <sys/socket.h>
60
+ #include <sys/time.h>
59
61
  #include <sys/uio.h>
60
62
  #include <sys/wait.h>
61
63
  #include <time.h>
@@ -597,6 +599,10 @@ int LSAPI_Init(void)
597
599
  lsapi_signal(SIGPIPE, lsapi_sigpipe);
598
600
  lsapi_signal(SIGUSR1, lsapi_siguser1);
599
601
 
602
+ #if defined(SIGXFSZ) && defined(SIG_IGN)
603
+ signal(SIGXFSZ, SIG_IGN);
604
+ #endif
605
+
600
606
  if ( LSAPI_InitRequest( &g_req, LSAPI_SOCK_FILENO ) == -1 )
601
607
  return -1;
602
608
  g_inited = 1;
@@ -2146,6 +2152,13 @@ void LSAPI_Init_Env_Parameters( fn_select_t fp )
2146
2152
  avoidFork = atoi( p );
2147
2153
  }
2148
2154
 
2155
+ p = getenv( "LSAPI_ALLOW_CORE_DUMP" );
2156
+ if ( !p )
2157
+ {
2158
+ struct rlimit limit = { 0, 0};
2159
+ setrlimit( RLIMIT_CORE, &limit );
2160
+ }
2161
+
2149
2162
  p = getenv( "LSAPI_MAX_IDLE" );
2150
2163
  if ( p )
2151
2164
  {
data/rails/dispatch.lsapi CHANGED
@@ -1,5 +1,9 @@
1
1
  #!/usr/local/bin/ruby
2
2
 
3
+ if GC.respond_to?(:copy_on_write_friendly=)
4
+ GC.copy_on_write_friendly = true
5
+ end
6
+
3
7
  require File.dirname(__FILE__) + "/../config/environment" unless defined?(RAILS_ROOT)
4
8
 
5
9
  # If you're using RubyGems and mod_ruby, this require should be changed to an absolute path one, like:
File without changes
metadata CHANGED
@@ -1,33 +1,26 @@
1
1
  --- !ruby/object:Gem::Specification
2
- rubygems_version: 0.9.2
3
- specification_version: 1
4
2
  name: ruby-lsapi
5
3
  version: !ruby/object:Gem::Version
6
- version: "3.2"
7
- date: 2008-04-11 00:00:00 -04:00
8
- summary: A ruby extension for fast communication with LiteSpeed Web Server.
9
- require_paths:
10
- - lib
11
- email:
12
- homepage:
13
- rubyforge_project:
14
- description:
15
- autorequire:
16
- default_executable:
17
- bindir: bin
18
- has_rdoc: false
19
- required_ruby_version: !ruby/object:Gem::Version::Requirement
20
- requirements:
21
- - - ">"
22
- - !ruby/object:Gem::Version
23
- version: 0.0.0
24
- version:
4
+ version: "3.3"
25
5
  platform: ruby
26
- signing_key:
27
- cert_chain:
28
- post_install_message:
29
6
  authors:
30
7
  - LiteSpeed Technologies Inc.
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+
12
+ date: 2008-09-10 00:00:00 -04:00
13
+ default_executable:
14
+ dependencies: []
15
+
16
+ description:
17
+ email:
18
+ executables: []
19
+
20
+ extensions:
21
+ - ext/lsapi/extconf.rb
22
+ extra_rdoc_files:
23
+ - README
31
24
  files:
32
25
  - README
33
26
  - examples
@@ -45,17 +38,31 @@ files:
45
38
  - scripts
46
39
  - scripts/lsruby_runner.rb
47
40
  - setup.rb
48
- test_files: []
49
-
41
+ has_rdoc: false
42
+ homepage:
43
+ post_install_message:
50
44
  rdoc_options: []
51
45
 
52
- extra_rdoc_files:
53
- - README
54
- executables: []
55
-
56
- extensions:
57
- - ext/lsapi/extconf.rb
46
+ require_paths:
47
+ - lib
48
+ required_ruby_version: !ruby/object:Gem::Requirement
49
+ requirements:
50
+ - - ">="
51
+ - !ruby/object:Gem::Version
52
+ version: "0"
53
+ version:
54
+ required_rubygems_version: !ruby/object:Gem::Requirement
55
+ requirements:
56
+ - - ">="
57
+ - !ruby/object:Gem::Version
58
+ version: "0"
59
+ version:
58
60
  requirements: []
59
61
 
60
- dependencies: []
62
+ rubyforge_project:
63
+ rubygems_version: 1.1.1
64
+ signing_key:
65
+ specification_version: 2
66
+ summary: A ruby extension for fast communication with LiteSpeed Web Server.
67
+ test_files: []
61
68