Re: java-server-socket-binding-multiple-domain-host-names

2013-05-25 Thread Elgs Chen
Yes, .getLocalAddress().getHostName() is not reliable. I don't assume the connection to be an HTTP connection. Probably I will set a new flag like allowPeep: true to request peeping into the header information if the users know that they are using HTTP for this connection. However, I'm afraid it

Re: java-server-socket-binding-multiple-domain-host-names

2013-05-25 Thread Enrico Olivelli
If you are using HTTP then clients will politely tell you which DNS name they are tryning to connect to using the "host:" header. TCP does not give any info about "hostnames", but only about "IP Addresses" I think .getLocalAddress().getHostName() will simply try to resolve back the IP address to

Re: [OT] Re: java-server-socket-binding-multiple-domain-host-names

2013-05-25 Thread Elgs Qian Chen
Thanks Mark. Actually I have problem with Apache2 proxy module when the backend is a wesocket server. I have written my own TCP proxy/port mapper, however, it maps only one client to one server. Now I think maybe I have to hack into the http protocol by reading a little bit from a client reque

[OT] Re: java-server-socket-binding-multiple-domain-host-names

2013-05-25 Thread Mark Thomas
On 25/05/2013 17:23, Elgs Chen wrote: > Hi Mark, > > I'm very sorry I know this is not related to the Tomcat project. Then mark the thread as off-topic and use the users mailing list. > However, I cannot find anyone who I think has more expertise in java > networking programming than you. Then

java-server-socket-binding-multiple-domain-host-names

2013-05-25 Thread Elgs Chen
Hi Mark, I'm very sorry I know this is not related to the Tomcat project. However, I cannot find anyone who I think has more expertise in java networking programming than you. I have a java server socket problem and I have no way to find the answer. I'm really hoping I can get some insights fr

Re: [PATCH] jdbc-pool | FairBlockingQueue

2013-05-25 Thread Björn Raupach
Hi Chris, thank you for your answer. Will do. :-) kind regards, Björn On May 24, 2013, at 23:10 , Christopher Schultz wrote: > Björn, > > On 5/24/13 4:08 PM, Björn Raupach wrote: >> out of pure curiosity I was browsing the source of jdbc-pool and >> ended up looking through FairBlockingQueue

Re: svn commit: r1486217 - /tomcat/trunk/test/org/apache/catalina/connector/TestRequest.java

2013-05-25 Thread Mark Thomas
On 25/05/2013 08:04, Violeta Georgieva wrote: > 2013/5/25 Mark Thomas wrote: >> >> On 24/05/2013 21:58, violet...@apache.org wrote: >>> Author: violetagg >>> Date: Fri May 24 20:58:10 2013 >>> New Revision: 1486217 >>> >>> URL: http://svn.apache.org/r1486217 >>> Log: >>> Temporary disable the test

Re: svn commit: r1486217 - /tomcat/trunk/test/org/apache/catalina/connector/TestRequest.java

2013-05-25 Thread Violeta Georgieva
2013/5/25 Mark Thomas wrote: > > On 24/05/2013 21:58, violet...@apache.org wrote: > > Author: violetagg > > Date: Fri May 24 20:58:10 2013 > > New Revision: 1486217 > > > > URL: http://svn.apache.org/r1486217 > > Log: > > Temporary disable the test check. > > Why? Because it was passing successful