Hi Filip,
I am starting testing your new NioProtocol handler, but I got
following exception:
30.10.2006 13:37:24 org.apache.tomcat.util.net.NioEndpoint
setSocketOptions
SCHWERWIEGEND:
java.net.SocketException: Invalid argument
at sun.nio.ch.Net.setIntOption0(Native Method)
at sun.nio.ch.Net.setIntOption(Net.java:152)
at sun.nio.ch.SocketChannelImpl$1.setInt
(SocketChannelImpl.java:372)
at sun.nio.ch.SocketOptsImpl.setInt(SocketOptsImpl.java:46)
at sun.nio.ch.SocketOptsImpl$IP.typeOfService
(SocketOptsImpl.java:249)
at sun.nio.ch.OptionAdaptor.setTrafficClass
(OptionAdaptor.java:158)
at sun.nio.ch.SocketAdaptor.setTrafficClass
(SocketAdaptor.java:320)
at org.apache.tomcat.util.net.SocketProperties.setProperties
(SocketProperties.java:107)
at org.apache.tomcat.util.net.NioEndpoint.setSocketOptions
(NioEndpoint.java:742)
at org.apache.tomcat.util.net.NioEndpoint$Worker.run
(NioEndpoint.java:1423)
at java.lang.Thread.run(Thread.java:613)
==
My connector config is:
<Connector port="8080"
maxThreads="150" connectionTimeout="20000"
redirectPort="8443"
protocol="org.apache.coyote.http11.Http11NioProtocol" />
After some google search I found that soTrafficClass are not
supported at mac os x :-(
s. http://jira.safehaus.org/browse/PENROSE-71
I comment out L 106 at class o.a.t.util.net.SocketProperties.
// socket.setTrafficClass(soTrafficClass);
Before I did this: I check starting connector with some different
values without success
ex.
<Connector port="8080"
maxThreads="150" connectionTimeout="20000"
redirectPort="8443"
protocol="org.apache.coyote.http11.Http11NioProtocol"
socket.soTrafficClass="2" />
After that patch the Connector work, but with the comet style chat
example I have more trouble:
INFO: Server startup in 3025 ms
Exception in thread "http-8080-1" java.lang.NullPointerException
at org.apache.tomcat.util.net.NioEndpoint$Worker.run
(NioEndpoint.java:1441)
at java.lang.Thread.run(Thread.java:613)
Exception in thread "http-8080-2" java.lang.NullPointerException
at org.apache.tomcat.util.net.NioEndpoint$Worker.run
(NioEndpoint.java:1441)
at java.lang.Thread.run(Thread.java:613)
--
Chat example really working? I see the posted messages only after
socket is closed (with Firefox 1.5)...
Next I test the chat example with APR handler, again.
Regards
Peter Roßbach
[EMAIL PROTECTED]