GroovyServ cannot allow the access except from loopback address from a
point of view of security.
If you can change the policy, based on your responsibility, comment
out the lines 81..84 in
src/main/groovy/org/jggug/kobo/groovyserv/GroovyServer.groovy:
//if (!socket.localSocketAddress.address.isLoopbackAddress()) { //
only from localhost
// DebugUtils.errorLog "Cannot accept except loopback address: ${socket}"
// continue
//}
But it's too risky, so I recommend changing the condition of the "if"
statement, which can accept only your IP address.
Regards,
--
Yasuharu NAKANO / nobeans
2012/2/11 Alexey Panteleev <ale...@yoxel.com>:
e.g.
$ groovyserv --allow-from=192.168.1.1,192.168.1.2
thanks.
2012/2/11 Alexey Panteleev <ale...@yoxel.com>:
Running org.jggug.kobo.groovyserv.ThreadIT
I wonder what is wrong now.
DEBUG: 2012/02/10 23:57:49.572 RequestWorker:64581: Future task of
handler is created: StreamRequestHandler:64581
DEBUG: 2012/02/10 23:57:49.573 RequestWorker:64581: Thread is created:
Thread[Thread-55,5,GServThreadGroup:64581:0]
DEBUG: 2012/02/10 23:57:49.573 RequestWorker:64581: Future task of
handler is created: GroovyInvokeHandler:64581
DEBUG: 2012/02/10 23:57:49.574 StreamRequestHandler:64581: Thread started
DEBUG: 2012/02/10 23:57:49.574 RequestWorker:64581: Thread is created:
Thread[Thread-56,5,GServThreadGroup:64581:1]
DEBUG: 2012/02/10 23:57:49.574 RequestWorker:64581: Request worker is started
DEBUG: 2012/02/10 23:57:49.575 GroovyInvokeHandler:64581: Thread started
DEBUG: 2012/02/10 23:57:49.576 putenv(PWD,
/usr/home/alexey/tmp/groovysrv/groovyserv-0.9)
DEBUG: 2012/02/10 23:57:49.576 GroovyInvokeHandler:64581: Invoking
groovy: [--classpath, ".", -e, Thread.start {; println('started');
while (true) {; Thread.sleep 100; }; println("end"); }; Thread.sleep
1000; Thread.currentThread().interrupt();]
DEBUG: 2012/02/10 23:57:49.591
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
DEBUG: 2012/02/10 23:57:49.591 Server->Client {
DEBUG: 2012/02/10 23:57:49.591 id: out
DEBUG: 2012/02/10 23:57:49.591 size(actual): 7
DEBUG: 2012/02/10 23:57:49.591 thread group: GServThreadGroup:64581:1
DEBUG: 2012/02/10 23:57:49.591 body:
DEBUG: 2012/02/10 23:57:49.591
+-----------+-----------+-----------+-----------+----------------+
DEBUG: 2012/02/10 23:57:49.591 73 74 61 72 74 65 64
| started
DEBUG: 2012/02/10 23:57:49.591
+-----------+-----------+-----------+-----------+----------------+
DEBUG: 2012/02/10 23:57:49.591 }
DEBUG: 2012/02/10 23:57:49.591
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
DEBUG: 2012/02/10 23:57:49.592
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
DEBUG: 2012/02/10 23:57:49.592 Server->Client {
DEBUG: 2012/02/10 23:57:49.592 id: out
DEBUG: 2012/02/10 23:57:49.592 size(actual): 1
DEBUG: 2012/02/10 23:57:49.592 thread group: GServThreadGroup:64581:1
DEBUG: 2012/02/10 23:57:49.592 body:
DEBUG: 2012/02/10 23:57:49.592
+-----------+-----------+-----------+-----------+----------------+
DEBUG: 2012/02/10 23:57:49.592 0a
| ?
DEBUG: 2012/02/10 23:57:49.592
+-----------+-----------+-----------+-----------+----------------+
DEBUG: 2012/02/10 23:57:49.592 }
DEBUG: 2012/02/10 23:57:49.592
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
DEBUG: 2012/02/10 23:57:50.593 GroovyInvokeHandler:64581: All sub
threads are joining....
Just not sure how the mvn tests are supposed to finish and if the
threading is ok.
Also, from the start script in FreeBSD case I will get OS_MSYS=true
Do you think it would be better to use OS_DARWIN=true instead?
Does it change anything?
Thanks
OS_MSYS and OS_DARWIN is just reset in bin/groovyserver. So I think it
doesn't related to the issue...
2012/2/11 Alexey Panteleev <ale...@yoxel.com>:
--
Yasuharu NAKANO / nobeans
btw, if you want to test out GroovyServe on FreeBSD I could set up a
temp account for you.
2012/2/11 Alexey Panteleev <ale...@yoxel.com>:
--
Yasuharu NAKANO / nobeans