rtext 0.5.0 → 0.5.1

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG CHANGED
@@ -43,3 +43,7 @@
43
43
  * Fixed backward reference list to not include opposites of forward references
44
44
  * Fixed problem with backend service socket connection on some machines
45
45
 
46
+ =0.5.1
47
+
48
+ * Fixed service connection problem when ports are in use by other processes
49
+
data/Rakefile CHANGED
@@ -8,7 +8,7 @@ DocFiles = [
8
8
 
9
9
  RTextGemSpec = Gem::Specification.new do |s|
10
10
  s.name = %q{rtext}
11
- s.version = "0.5.0"
11
+ s.version = "0.5.1"
12
12
  s.date = Time.now.strftime("%Y-%m-%d")
13
13
  s.summary = %q{Ruby Textual Modelling}
14
14
  s.email = %q{martin dot thiede at gmx de}
data/lib/rtext/service.rb CHANGED
@@ -229,18 +229,8 @@ class Service
229
229
  port = PortRangeStart
230
230
  serv = nil
231
231
  begin
232
- serv = TCPServer.new("localhost", port)
233
- if serv.addr[0] == "AF_INET6"
234
- # we need to make sure that two RText server won't connect on the same port but with IPv4 and IPv6
235
- # therefore we always use the IPv4 interface, try again to get the IPv4 interface
236
- # note that using "127.0.0.1" instead of localhost would always get us the IPv4 interface on the
237
- # first try, however, on some machines using the IP address instead of localhost doesn't work
238
- # (EACCES error was seen, possibly due to some specific firewall setup)
239
- serv2 = TCPServer.new("localhost", port)
240
- serv.close
241
- serv = serv2
242
- end
243
- rescue Errno::EADDRINUSE, Errno::EAFNOSUPPORT
232
+ serv = TCPServer.new("127.0.0.1", port)
233
+ rescue Errno::EADDRINUSE, Errno::EAFNOSUPPORT, Errno::EACCES
244
234
  port += 1
245
235
  retry if port <= PortRangeEnd
246
236
  raise
@@ -1,10 +1,10 @@
1
- RText service, listening on port 9001
2
- [09:46:38] INFO accepted connection
3
- [09:46:38] DEBUG request: {"command"=>"load_model", "invocation_id"=>1, "type"=>"request"}
4
- [09:46:38] DEBUG response: {"type"=>"response", "invocation_id"=>1, "problems"=>[], "total_problems"=>0}
5
- [09:46:38] DEBUG request: {"command"=>"unknown", "invocation_id"=>2, "type"=>"request"}
6
- [09:46:38] WARN unknown command unknown
7
- [09:46:38] DEBUG response: {"type"=>"unknown_command_error", "invocation_id"=>2, "command"=>"unknown"}
8
- [09:46:38] DEBUG request: {"type"=>"request", "command"=>"stop", "invocation_id"=>3}
9
- [09:46:38] INFO RText service, stopping now (stop requested)
10
- [09:46:38] DEBUG response: {"type"=>"response", "invocation_id"=>3}
1
+ RText service, listening on port 9002
2
+ [11:19:15] INFO accepted connection
3
+ [11:19:15] DEBUG request: {"command"=>"load_model", "invocation_id"=>1, "type"=>"request"}
4
+ [11:19:15] DEBUG response: {"type"=>"response", "invocation_id"=>1, "problems"=>[], "total_problems"=>0}
5
+ [11:19:15] DEBUG request: {"command"=>"unknown", "invocation_id"=>2, "type"=>"request"}
6
+ [11:19:15] WARN unknown command unknown
7
+ [11:19:15] DEBUG response: {"type"=>"unknown_command_error", "invocation_id"=>2, "command"=>"unknown"}
8
+ [11:19:15] DEBUG request: {"type"=>"request", "command"=>"stop", "invocation_id"=>3}
9
+ [11:19:15] INFO RText service, stopping now (stop requested)
10
+ [11:19:15] DEBUG response: {"type"=>"response", "invocation_id"=>3}
@@ -25136,3 +25136,73 @@ I, [2012-12-03T09:46:38.205525 #56604] INFO -- : ruby -I../../../../rgen/lib -I
25136
25136
 
25137
25137
  I, [2012-12-03T09:46:38.631549 #56604] INFO -- : connecting to 9001
25138
25138
  I, [2012-12-03T09:46:39.936624 #56604] INFO -- : server socket closed (end of file)
25139
+ I, [2012-12-07T11:18:31.507696 #58688] INFO -- : ruby -I../../../../rgen/lib -I ../../../lib ../crash_on_request_editor.rb "*.ect" 2>&1
25140
+
25141
+ I, [2012-12-07T11:18:32.042726 #58688] INFO -- : connecting to 9002
25142
+ I, [2012-12-07T11:18:32.245738 #58688] INFO -- : server socket closed (end of file)
25143
+ I, [2012-12-07T11:18:37.151019 #58688] INFO -- : ruby -e "sleep(2)"
25144
+
25145
+ W, [2012-12-07T11:18:39.382146 #58688] WARN -- : could not connect socket (connection timeout)
25146
+ I, [2012-12-07T11:18:39.382146 #58688] INFO -- : ruby -e "sleep(2)"
25147
+
25148
+ W, [2012-12-07T11:18:41.495267 #58688] WARN -- : could not connect socket (connection timeout)
25149
+ I, [2012-12-07T11:18:41.597273 #58688] INFO -- : ruby -I../../../../rgen/lib -I ../../../lib ../ecore_editor.rb "*.ect" 2>&1
25150
+
25151
+ I, [2012-12-07T11:18:41.907291 #58688] INFO -- : connecting to 9002
25152
+ I, [2012-12-07T11:18:44.455436 #58688] INFO -- : server socket closed (end of file)
25153
+ I, [2012-12-07T11:18:44.560442 #58688] INFO -- : ruby -e "this will crash"
25154
+
25155
+ W, [2012-12-07T11:18:45.589501 #58688] WARN -- : could not connect socket (connection timeout)
25156
+ I, [2012-12-07T11:18:45.590501 #58688] INFO -- : ruby -e "this will crash"
25157
+
25158
+ W, [2012-12-07T11:18:46.617560 #58688] WARN -- : could not connect socket (connection timeout)
25159
+ I, [2012-12-07T11:18:46.722566 #58688] INFO -- : ruby -I../../../../rgen/lib -I ../../../lib ../ecore_editor.rb "*.ect" 2>&1
25160
+
25161
+ I, [2012-12-07T11:18:47.148590 #58688] INFO -- : connecting to 9002
25162
+ I, [2012-12-07T11:18:48.756682 #58688] INFO -- : server socket closed (end of file)
25163
+ I, [2012-12-07T11:18:48.761683 #58688] INFO -- : ruby -I../../../../rgen/lib -I ../../../lib ../ecore_editor.rb "*.ect" 2>&1
25164
+
25165
+ I, [2012-12-07T11:18:49.255711 #58688] INFO -- : connecting to 9002
25166
+ I, [2012-12-07T11:18:50.673792 #58688] INFO -- : server socket closed (end of file)
25167
+ I, [2012-12-07T11:18:50.679792 #58688] INFO -- : invalid_command_will_fail
25168
+
25169
+ W, [2012-12-07T11:18:51.714852 #58688] WARN -- : could not connect socket (connection timeout)
25170
+ I, [2012-12-07T11:18:51.715852 #58688] INFO -- : invalid_command_will_fail
25171
+
25172
+ W, [2012-12-07T11:18:52.741910 #58688] WARN -- : could not connect socket (connection timeout)
25173
+ I, [2012-12-07T11:18:52.846916 #58688] INFO -- : ruby -E utf-8 -I../../../../rgen/lib -I ../../../lib ../ecore_editor.rb "*.invenc" 2>&1
25174
+
25175
+ I, [2012-12-07T11:18:53.311943 #58688] INFO -- : connecting to 9002
25176
+ I, [2012-12-07T11:18:54.619018 #58688] INFO -- : server socket closed (end of file)
25177
+ I, [2012-12-07T11:18:54.621018 #58688] INFO -- : ruby -I../../../../rgen/lib -I ../../../lib ../ecore_editor.rb "*.ect" 2>&1
25178
+
25179
+ I, [2012-12-07T11:18:54.931036 #58688] INFO -- : connecting to 9002
25180
+ I, [2012-12-07T11:18:56.954151 #58688] INFO -- : server socket closed (end of file)
25181
+ I, [2012-12-07T11:18:56.959152 #58688] INFO -- : ruby -I../../../../rgen/lib -I ../../../lib ../ecore_editor.rb "*.ect" 2>&1
25182
+
25183
+ I, [2012-12-07T11:18:57.394176 #58688] INFO -- : connecting to 9002
25184
+ I, [2012-12-07T11:18:58.709252 #58688] INFO -- : server socket closed (end of file)
25185
+ I, [2012-12-07T11:18:58.714252 #58688] INFO -- : ruby -I../../../../rgen/lib -I ../../../lib ../ecore_editor.rb "*.ect" 2>&1
25186
+
25187
+ I, [2012-12-07T11:18:59.091274 #58688] INFO -- : connecting to 9002
25188
+ I, [2012-12-07T11:19:00.296342 #58688] INFO -- : server socket closed (end of file)
25189
+ I, [2012-12-07T11:19:00.301343 #58688] INFO -- : ruby -I../../../../rgen/lib -I ../../../lib ../ecore_editor.rb "*.ect3" 2>&1
25190
+
25191
+ I, [2012-12-07T11:19:00.729367 #58688] INFO -- : connecting to 9002
25192
+ I, [2012-12-07T11:19:07.153735 #58688] INFO -- : server socket closed (end of file)
25193
+ I, [2012-12-07T11:19:07.160735 #58688] INFO -- : ruby -I../../../../rgen/lib -I ../../../lib ../ecore_editor.rb "*.ect" 2>&1
25194
+
25195
+ I, [2012-12-07T11:19:07.629762 #58688] INFO -- : connecting to 9002
25196
+ I, [2012-12-07T11:19:10.579931 #58688] INFO -- : server socket closed (end of file)
25197
+ I, [2012-12-07T11:19:10.592931 #58688] INFO -- : ruby -I../../../../rgen/lib -I ../../../lib ../ecore_editor.rb "*.ect" 2>&1
25198
+
25199
+ I, [2012-12-07T11:19:10.916950 #58688] INFO -- : connecting to 9002
25200
+ I, [2012-12-07T11:19:12.532042 #58688] INFO -- : server socket closed (end of file)
25201
+ I, [2012-12-07T11:19:12.538043 #58688] INFO -- : ruby -I../../../../rgen/lib -I ../../../lib ../ecore_editor.rb "*.ect" 2>&1
25202
+
25203
+ I, [2012-12-07T11:19:12.964067 #58688] INFO -- : connecting to 9002
25204
+ I, [2012-12-07T11:19:14.580159 #58688] INFO -- : server socket closed (end of file)
25205
+ I, [2012-12-07T11:19:14.585160 #58688] INFO -- : ruby -I../../../../rgen/lib -I ../../../lib ../ecore_editor.rb "*.ect" 2>&1
25206
+
25207
+ I, [2012-12-07T11:19:15.012184 #58688] INFO -- : connecting to 9002
25208
+ I, [2012-12-07T11:19:16.318259 #58688] INFO -- : server socket closed (end of file)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rtext
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.5.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-12-05 00:00:00.000000000 Z
12
+ date: 2012-12-07 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rgen