Re: Git

2014-01-26 Thread Costin Manolache
Gradle is becoming the standard build tool for android. I didn't like it at first - I don't really see the point of groovy - but it's still better than 'programming' in ant, and you don't have to touch any XML. You can use any ant task from gradle - best to think of it as a non-xml ant file, with

Re: Resources - merging back the changes

2012-10-31 Thread Costin Manolache
Hi Mark, I synced from HEAD - and noticed that DefaultServlet.PUT now fails with '403' if the resource already exists. I'm pretty sure this used to work, and at least for webdav it's supposed to replace the content. Is this a bug - or intended (the problem seems to be preResourceExists() check in

Re: Resources - merging back the changes

2012-10-31 Thread Costin Manolache
On Wed, Oct 31, 2012 at 4:41 PM, Costin Manolache cos...@gmail.com wrote: Hi Mark, I synced from HEAD - and noticed that DefaultServlet.PUT now fails with '403' if the resource already exists. I'm pretty sure this used to work, and at least for webdav it's supposed to replace the content

Re: Resources - Is DirContext the right basis for the API?

2012-09-27 Thread Costin Manolache
On Thu, Sep 27, 2012 at 2:14 AM, Mark Thomas ma...@apache.org wrote: On 27/09/2012 10:09, Konstantin Kolinko wrote: I am sure that DirContext is not the right API to define resources. At best is could be a [deprecated] view/proxy to the actual implementation. The only benefit I see in

Re: Resources - Is DirContext the right basis for the API?

2012-09-27 Thread Costin Manolache
On Thu, Sep 27, 2012 at 10:54 AM, Remy Maucherat r...@apache.org wrote: On Thu, 2012-09-27 at 07:34 -0700, Costin Manolache wrote: One use for a resource API is if it provides different backends - like Hadoop filesystem abstraction does. Than you could serve from hdfs/db/etc, and someone

Re: Resources - Is DirContext the right basis for the API?

2012-09-27 Thread Costin Manolache
On Thu, Sep 27, 2012 at 10:18 AM, Mark Thomas ma...@apache.org wrote: Costin Manolache cos...@gmail.com wrote: On Thu, Sep 27, 2012 at 2:14 AM, Mark Thomas ma...@apache.org wrote: On 27/09/2012 10:09, Konstantin Kolinko wrote: I am sure that DirContext is not the right API to define

Re: Possible IIS SPDY Redirector for Tomcat

2012-05-29 Thread Costin Manolache
, which allows to insert managed modules (.Net) in the request pipeline. However, Mladen Turk pointed me to the SPDY protocol which could also be used for server-to-server communication as a possible replacement for AJP (which was also mentioned in the Thread SPDY support by Costin Manolache

Re: APR/native and per socket timeouts.

2012-05-21 Thread Costin Manolache
My understanding is that the timeout is implemented in poll.c maintain() - by scanning the socket list in C. Why not doing the same thing in java - i.e. don't touch native code, have all sockets 'long', and close whenever you need from java ? Costin On Mon, May 21, 2012 at 5:55 AM, Mark Thomas

Re: Porting native fixes from trunk to 1.1.x

2012-05-21 Thread Costin Manolache
Any plan to do a release out of trunk (1.2 ) ? interrupt() and the others seem useful. Costin On Mon, May 21, 2012 at 5:41 AM, Mark Thomas ma...@apache.org wrote: On 21/05/2012 13:25, Mark Thomas wrote: Just a quick check before I hit commit. Am I correct in thinking that r1296944 [1]

Re: native connector tool chain

2012-05-21 Thread Costin Manolache
Sorry, haven't compiled on windows in last 10 years. I suspect the easiest path would be cygwin and gcc. If you want to use vcc - you need to find a way to generate the project file with the right flags. One option would be to use the CMakeLists.txt - you'll probably need to adjust the options

Re: APR/native and per socket timeouts.

2012-05-21 Thread Costin Manolache
On Mon, May 21, 2012 at 9:29 AM, Mark Thomas ma...@apache.org wrote: On 21/05/2012 15:26, Costin Manolache wrote: My understanding is that the timeout is implemented in poll.c maintain() - by scanning the socket list in C. Why not doing the same thing in java - i.e. don't touch native

Re: native connector tool chain

2012-05-21 Thread Costin Manolache
On Mon, May 21, 2012 at 10:31 AM, Mark Thomas ma...@apache.org wrote: On 21/05/2012 17:52, Mladen Turk wrote: On 05/21/2012 02:05 PM, Mark Thomas wrote: I am trying to build the 1.1.x native connector from trunk so I can test the changes I plan to make to support per socket time outs. I

Re: APR/native and per socket timeouts.

2012-05-21 Thread Costin Manolache
On Mon, May 21, 2012 at 10:48 AM, Mark Thomas ma...@apache.org wrote: On 21/05/2012 18:30, Costin Manolache wrote: On Mon, May 21, 2012 at 9:29 AM, Mark Thomas ma...@apache.org wrote: On 21/05/2012 15:26, Costin Manolache wrote: My understanding is that the timeout is implemented

Re: APR/native and per socket timeouts.

2012-05-21 Thread Costin Manolache
On Mon, May 21, 2012 at 12:16 PM, Mladen Turk mt...@apache.org wrote: On 05/21/2012 08:01 PM, Costin Manolache wrote: On Mon, May 21, 2012 at 10:48 AM, Mark Thomasma...@apache.org wrote: My point was that you don't need to change anything in native. Leave APR as it is - just use '0

Re: SpdyProxyProtocol class using AJP constants

2012-05-12 Thread Costin Manolache
On Sat, May 12, 2012 at 8:08 AM, Konstantin Kolinko knst.koli...@gmail.comwrote: Hi! The SpdyProxyProtocol class (exists in trunk only) uses ajp.Constants class: setSoLinger(Constants.DEFAULT_CONNECTION_LINGER); setSoTimeout(Constants.DEFAULT_CONNECTION_TIMEOUT);

Re: Purpose of unlockAccept

2012-05-08 Thread Costin Manolache
On Mon, May 7, 2012 at 11:05 PM, Mladen Turk mt...@apache.org wrote: On 05/08/2012 01:13 AM, Costin Manolache wrote: On Mon, May 7, 2012 at 3:44 PM, Mladen Turkmt...@apache.org wrote: On 05/07/2012 11:05 PM, Costin Manolache wrote: By 'unlockAccept' you mean the socket connection made

Re: Purpose of unlockAccept

2012-05-08 Thread Costin Manolache
...@apache.org wrote: On 08/05/2012 07:41, Mladen Turk wrote: On 05/08/2012 08:34 AM, Costin Manolache wrote: On Mon, May 7, 2012 at 11:05 PM, Mladen Turkmt...@apache.org wrote: For real pause (stop accepting connections and wait till all sessions times out) this can be done safely by setting 10

Re: Purpose of unlockAccept

2012-05-08 Thread Costin Manolache
On Tue, May 8, 2012 at 11:01 AM, Mladen Turk mt...@apache.org wrote: On 05/08/2012 07:09 PM, Costin Manolache wrote: IMHO neither 'graceful shutdown' nor 'deploy' are best served by not accepting connections: - for 'graceful' - a number of connections will get to backlog and timeout

Re: Purpose of unlockAccept

2012-05-08 Thread Costin Manolache
On Tue, May 8, 2012 at 11:54 AM, Mark Thomas ma...@apache.org wrote: On 08/05/2012 19:47, Costin Manolache wrote: You may still want to accept requests for existing sessions. Both 'graceful shutdown' and app deploy are important cases - it's just that current 'pause()' is not that good

Re: Purpose of unlockAccept

2012-05-07 Thread Costin Manolache
By 'unlockAccept' you mean the socket connection made to the acceptor to force the accept() to unblock ? How are you getting the socket accept() to return, my understanding was that close() or thread interrupt don't work in all cases/VMs. Costin On Mon, May 7, 2012 at 9:24 AM, Mladen Turk

Re: Purpose of unlockAccept

2012-05-07 Thread Costin Manolache
On Mon, May 7, 2012 at 3:44 PM, Mladen Turk mt...@apache.org wrote: On 05/07/2012 11:05 PM, Costin Manolache wrote: By 'unlockAccept' you mean the socket connection made to the acceptor to force the accept() to unblock ? How are you getting the socket accept() to return, my understanding

Re: SPDY support

2012-03-25 Thread Costin Manolache
. That's the second option, if compile-time dep to gpl is not ok. The 3rd option is to have the entire spdy package outside tomcat - but keep the hooks ( i.e. 'beforeHandshake', NpnHandler, etc ) - like I'm proposing for tomcat7. Costin Filip - Original Message - From: Costin Manolache

Re: SPDY support

2012-03-25 Thread Costin Manolache
On Sun, Mar 25, 2012 at 5:58 PM, Bill Barker billwbar...@verizon.netwrote: Mark Thomas wrote in message news:4F6F8735.3090706@apache.**org... On 25/03/2012 17:24, Costin Manolache wrote: For Tomcat7 I'm proposing to only add hooks: 'beforeHandshake' callback in Handler, and an optional

Re: SPDY support

2012-03-24 Thread Costin Manolache
:31 AM, Costin Manolache cos...@gmail.com wrote: On Mon, Mar 19, 2012 at 10:43 AM, Gus Heck ph...@copyright.com wrote: I just bumped into the whole concept of SPDY this morning, and it sounds fabulous, and I'm quite happy to see that it's already underway in trunk. I'm quite likely

Re: SPDY support

2012-03-19 Thread Costin Manolache
On Mon, Mar 19, 2012 at 10:43 AM, Gus Heck ph...@copyright.com wrote: I just bumped into the whole concept of SPDY this morning, and it sounds fabulous, and I'm quite happy to see that it's already underway in trunk. I'm quite likely to be using a lot of development using Vaadin framework in

Re: WebSockets in Tomcat 6

2012-03-15 Thread Costin Manolache
On Thu, Mar 15, 2012 at 7:10 AM, Filip Hanik - Dev Lists devli...@hanik.com wrote: On 3/15/2012 6:54 AM, Mark Thomas wrote: On 14/03/2012 17:42, Filip Hanik Mailing Lists wrote: http://people.apache.org/~**fhanik/reports/servers/http://people.apache.org/~fhanik/reports/servers/ Attached

Re: SPDY support

2012-03-14 Thread Costin Manolache
handler for nio' ( like it is hooked in the apr protocol), and in order to use it you'll need to download the npn-boot. Costin On Wed, Mar 14, 2012 at 5:32 AM, Konstantin Kolinko knst.koli...@gmail.comwrote: 2012/2/2 Costin Manolache cos...@gmail.com: Some initial patch for SPDY - using

Re: SPDY support

2012-03-12 Thread Costin Manolache
with the NIO connector - not sure if it's ok to add this dependency, but at least to compare them. ( NPN == next protocol negotiation, a TLS extension required for SPDY support ) Costin On Wed, Feb 22, 2012 at 11:08 PM, Costin Manolache cos...@gmail.com wrote: On Wed, Feb 22, 2012 at 10:47 AM, Mark

Re: WebSocket status

2012-03-08 Thread Costin Manolache
Speaking of thread safety, in the APR connector, when SSL is used, it may be possible to hit some problems if read and write are called at same time from different threads on same socket - SSL_read and SSL_write share the same context and apparently are not safe. I don't know if websocket allows

Re: svn commit: r1296944 - /tomcat/native/trunk/native/src/poll.c

2012-03-05 Thread Costin Manolache
On Mon, Mar 5, 2012 at 4:45 AM, Mladen Turk mt...@apache.org wrote: On 03/05/2012 07:30 AM, cos...@apache.org wrote: Author: costin Date: Mon Mar 5 06:30:17 2012 New Revision: 1296944 URL: http://svn.apache.org/viewvc?**rev=1296944view=revhttp://svn.apache.org/viewvc?rev=1296944view=rev

Re: svn commit: r1296944 - /tomcat/native/trunk/native/src/poll.c

2012-03-05 Thread Costin Manolache
On Mon, Mar 5, 2012 at 1:39 PM, Costin Manolache cos...@gmail.com wrote: On Mon, Mar 5, 2012 at 4:45 AM, Mladen Turk mt...@apache.org wrote: On 03/05/2012 07:30 AM, cos...@apache.org wrote: Author: costin Date: Mon Mar 5 06:30:17 2012 New Revision: 1296944 URL: http://svn.apache.org

Re: WebSocket status

2012-03-01 Thread Costin Manolache
On Thu, Mar 1, 2012 at 9:54 AM, Mark Thomas ma...@apache.org wrote: On 01/03/2012 17:13, Filip Hanik - Dev Lists wrote: Mark, what buffer size are you referring to increase for the web socket tests to all pass? Sorry, should have been clearer about that. In o.a.c.websocket.MessageInbound

Re: Release Tomcat Native 1.1.23

2012-02-23 Thread Costin Manolache
Thanks, I'll try it. Costin On Thu, Feb 23, 2012 at 11:53 AM, Mladen Turk mt...@apache.org wrote: On 02/22/2012 07:22 PM, Costin Manolache wrote: On Wed, Feb 22, 2012 at 9:12 AM, Mladen Turkmt...@apache.org wrote: I'm trying to provide a way for people to build libtcnative-2.so so

Re: Release Tomcat Native 1.1.23

2012-02-22 Thread Costin Manolache
On Tue, Feb 21, 2012 at 11:11 PM, Mladen Turk mt...@apache.org wrote: On 02/22/2012 06:17 AM, Costin Manolache wrote: Mladen: please let me know if you want to further review the change or should I merge it to the branch. Well I personally would not merge that into 1.1.x branch. It would

Re: Release Tomcat Native 1.1.23

2012-02-22 Thread Costin Manolache
On Wed, Feb 22, 2012 at 8:13 AM, Mladen Turk mt...@apache.org wrote: On 02/22/2012 03:54 PM, Costin Manolache wrote: On Tue, Feb 21, 2012 at 11:11 PM, Mladen Turkmt...@apache.org wrote: Well I personally would not merge that into 1.1.x branch. It would be a bit weird to have 1.1.22

Re: SPDY support

2012-02-22 Thread Costin Manolache
run 'ant download' ? Any concerns with it ? Costin On Thu, Feb 16, 2012 at 2:11 PM, Mark Thomas ma...@apache.org wrote: On 16/02/2012 01:44, Costin Manolache wrote: That doesn't mean the application must receive the entire message as one byte[] or as a Stream. You can have a very large

Re: SPDY support

2012-02-22 Thread Costin Manolache
On Wed, Feb 22, 2012 at 8:57 AM, Mark Thomas ma...@apache.org wrote: On 22/02/2012 16:51, Costin Manolache wrote: First part submitted. For the second: what is the process for adding a dependency ? Why do you need the dependency? Spdy requires header compression - with a pre-defined

Re: Release Tomcat Native 1.1.23

2012-02-22 Thread Costin Manolache
On Wed, Feb 22, 2012 at 9:12 AM, Mladen Turk mt...@apache.org wrote: On 02/22/2012 05:47 PM, Costin Manolache wrote: On Wed, Feb 22, 2012 at 8:13 AM, Mladen Turkmt...@apache.org wrote: One thing I would appreciate help with: I would like to have an option to statically link openssl

Re: SPDY support

2012-02-22 Thread Costin Manolache
On Wed, Feb 22, 2012 at 10:27 AM, Konstantin Kolinko knst.koli...@gmail.com wrote: 2012/2/22 Costin Manolache cos...@gmail.com: On Wed, Feb 22, 2012 at 8:57 AM, Mark Thomas ma...@apache.org wrote: On 22/02/2012 16:51, Costin Manolache wrote: First part submitted. For the second: what

Re: SPDY support

2012-02-22 Thread Costin Manolache
On Wed, Feb 22, 2012 at 10:47 AM, Mark Thomas ma...@apache.org wrote: On 22/02/2012 18:41, Costin Manolache wrote: On Wed, Feb 22, 2012 at 10:27 AM, Konstantin Kolinko knst.koli...@gmail.com wrote: 2012/2/22 Costin Manolache cos...@gmail.com: On Wed, Feb 22, 2012 at 8:57 AM, Mark

Re: Release Tomcat Native 1.1.23

2012-02-21 Thread Costin Manolache
On Tue, Feb 21, 2012 at 12:51 PM, Rainer Jung rainer.j...@kippdata.dewrote: On 21.02.2012 21:30, Costin Manolache wrote: Is this going to be from head ? How can I get the NPN ( sslext.c ) included ? Mladen is aiming for 1.1.23, so he will be releasing from the 1.1.x branch. What's

Re: Release Tomcat Native 1.1.23

2012-02-21 Thread Costin Manolache
Will do it tonight ( it's already in the trunk ) Costin On Tue, Feb 21, 2012 at 1:25 PM, Rainer Jung rainer.j...@kippdata.dewrote: On 21.02.2012 21:56, Costin Manolache wrote: On Tue, Feb 21, 2012 at 12:51 PM, Rainer Jungrainer.j...@kippdata.de** wrote: On 21.02.2012 21:30, Costin

Re: Release Tomcat Native 1.1.23

2012-02-21 Thread Costin Manolache
On Tue, Feb 21, 2012 at 3:29 PM, Mladen Turk mt...@apache.org wrote: On 02/21/2012 09:56 PM, Costin Manolache wrote: On Tue, Feb 21, 2012 at 12:51 PM, Rainer Jungrainer.j...@kippdata.de** wrote: On 21.02.2012 21:30, Costin Manolache wrote: Is this going to be from head ? How can I get

Re: Release Tomcat Native 1.1.23

2012-02-21 Thread Costin Manolache
at 3:29 PM, Mladen Turk mt...@apache.org wrote: On 02/21/2012 09:56 PM, Costin Manolache wrote: On Tue, Feb 21, 2012 at 12:51 PM, Rainer Jungrainer.j...@kippdata.de** wrote: On 21.02.2012 21:30, Costin Manolache wrote: Is this going to be from head ? How can I get the NPN ( sslext.c

Re: SPDY support

2012-02-15 Thread Costin Manolache
On Wed, Feb 15, 2012 at 6:33 AM, Mark Thomas ma...@apache.org wrote: On 15/02/2012 03:53, Costin Manolache wrote: Uploaded another take. This time I'm just adding https://github.com/costinm/tomcat/blob/trunk/java/org/apache/tomcat/util/net/LightHandler.java which is just a Handler

Re: SPDY support

2012-02-15 Thread Costin Manolache
On Wed, Feb 15, 2012 at 12:56 AM, Mladen Turk mt...@apache.org wrote: On 02/15/2012 04:53 AM, Costin Manolache wrote: Uploaded another take. For non-SSL ( JIO, and apr without ssl ) - SPDY just kicks in on all connections, this is just a short-cut for testing. I could also define

Re: SPDY support

2012-02-15 Thread Costin Manolache
On Wed, Feb 15, 2012 at 12:34 AM, Mark Thomas ma...@apache.org wrote: Processor is tied to one request/response - Spdy protocol is a multiplexing protocol, so one spdy connection will have 100s of Requests. I am using Processor interface for each muxed spdy stream. Hmm. I wonder if we

Re: SPDY support

2012-02-15 Thread Costin Manolache
On Wed, Feb 15, 2012 at 10:31 AM, Mark Thomas ma...@apache.org wrote: On 15/02/2012 16:11, Costin Manolache wrote: After I submit, I'll give a try to changing SocketWrapper (non-generic, add read/write), in the git. If you don't like it - easy to drop the branch, but I think it'll

Re: SPDY support

2012-02-15 Thread Costin Manolache
On Wed, Feb 15, 2012 at 12:10 PM, Mark Thomas ma...@apache.org wrote: On 15/02/2012 19:58, Costin Manolache wrote: In spdy I'm using a SpdyFrame class ( spdy allow data frames to be fragmented any way you want by intermediary - so even if I receive a huge frame, I can split

Re: SPDY support

2012-02-14 Thread Costin Manolache
:37 AM, Mark Thomas ma...@apache.org wrote: On 02/02/2012 14:14, Costin Manolache wrote: On Thu, Feb 2, 2012 at 3:33 AM, Mark Thomas ma...@apache.org wrote: On 02/02/2012 10:05, Remy Maucherat wrote: Ok, I think your light protocol concept to group any upgraded connections is appropriate

Re: SPDY support

2012-02-14 Thread Costin Manolache
On Tue, Feb 14, 2012 at 9:36 AM, Mark Thomas ma...@apache.org wrote: On 14/02/2012 08:29, Costin Manolache wrote: Ok, took a bit to get the Apr polling to work and add some minimal tests. Please take another look - in particular to https://github.com/costinm/tomcat/blob/trunk/java/org

Re: SPDY support

2012-02-14 Thread Costin Manolache
it looks. Costin On Tue, Feb 14, 2012 at 9:36 AM, Mark Thomas ma...@apache.org wrote: On 14/02/2012 08:29, Costin Manolache wrote: Ok, took a bit to get the Apr polling to work and add some minimal tests. Please take another look - in particular to https://github.com/costinm/tomcat/blob

Re: SPDY support

2012-02-14 Thread Costin Manolache
). On Tue, Feb 14, 2012 at 3:32 PM, Mark Thomas ma...@apache.org wrote: On 14/02/2012 20:47, Costin Manolache wrote: On Tue, Feb 14, 2012 at 9:36 AM, Mark Thomas ma...@apache.org wrote: On 14/02/2012 08:29, Costin Manolache wrote: Ok, took a bit to get the Apr polling to work and add

Re: svn commit: r1241356 - in /tomcat/trunk/java/org/apache/tomcat/jni: Poll.java SSL.java SSLExt.java

2012-02-07 Thread Costin Manolache
On Tue, Feb 7, 2012 at 2:14 AM, Mark Thomas ma...@apache.org wrote: On 07/02/2012 06:13, cos...@apache.org wrote: Author: costin Date: Tue Feb 7 06:13:36 2012 New Revision: 1241356 URL: http://svn.apache.org/viewvc?rev=1241356view=rev Log: Add the new ssl methods from

Re: SPDY support

2012-02-02 Thread Costin Manolache
On Thu, Feb 2, 2012 at 3:33 AM, Mark Thomas ma...@apache.org wrote: On 02/02/2012 10:05, Remy Maucherat wrote: On Wed, 2012-02-01 at 13:54 -0800, Costin Manolache wrote: Hi, Some initial patch for SPDY - using the NPN SSL extension, as required by chrome/firefox. I used github so

Re: Tomcat-native patch for NPN support

2012-02-02 Thread Costin Manolache
On Thu, Feb 2, 2012 at 12:21 AM, jean-frederic clere jfcl...@gmail.comwrote: On 02/01/2012 09:59 PM, Costin Manolache wrote: Hi, I have a patch to the jni library, I uploaded it to github for easy commenting: https://github.com/costinm/**tomcat-native/commit

Tomcat-native patch for NPN support

2012-02-01 Thread Costin Manolache
Hi, I have a patch to the jni library, I uploaded it to github for easy commenting: https://github.com/costinm/tomcat-native/commit/5e7d4b45bfa542e4b099bfdc2bda423b9a6cc85d Please let me know if it looks ok - I included a 'cmake' build, which can generate a libtcnative.so with no external

SPDY support

2012-02-01 Thread Costin Manolache
Hi, Some initial patch for SPDY - using the NPN SSL extension, as required by chrome/firefox. I used github so it's easy to add comments or test: https://github.com/costinm/tomcat/commit/e97def3314216c083cc4b68ad9731e5a94b2af28 Basic 'hello world' works in both jio and apr, looking for

Re: WebSocket progress report

2012-01-29 Thread Costin Manolache
On Sun, Jan 29, 2012 at 2:19 AM, Mark Thomas ma...@apache.org wrote: On 29/01/2012 01:20, Costin Manolache wrote: On Fri, Jan 27, 2012 at 3:09 PM, Mark Thomas ma...@apache.org wrote: Not complaining - it's great to add this feature, please commit it - but I'm wondering if a lighter

Re: WebSocket progress report

2012-01-28 Thread Costin Manolache
On Fri, Jan 27, 2012 at 3:09 PM, Mark Thomas ma...@apache.org wrote: On 26/01/2012 23:15, Mark Thomas wrote: Good news. The WebSocket implementation has reached a state where you should be able to play with it. Receiving and sending of binary and text data via streams/writers and messages

tc-native: adding few more features

2010-12-08 Thread Costin Manolache
Hi, I have few features mostly done - I'm looking to add them in a way that allows Java code to detect if the new methods are there and use them, or use the old library if needed. What I'm trying to add: - BIO pair mode for SSL - right now we attach to a socket, in BIO pair you can just

Re: My first to 7.x

2010-12-02 Thread Costin Manolache
I always had this question - for trunk most of the times I just submited the change and if anyone -1 I revert. If you feel it's going to be controversial - send a mail first and ask for opinions. There is an automated svn commit message that would notify anyone interested about the change. For

Re: Creating tomcat VFS

2010-10-15 Thread Costin Manolache
Are you going to replace DirContext ? If yes - great, but please first send a quick summary comparing your API with the other VFS around in apache. I think commons has few targets, including a hdfs, I remember there are more. If no - not sure what's the point of replacing java.io impl, I assume

Re: Creating tomcat VFS

2010-10-15 Thread Costin Manolache
On Fri, Oct 15, 2010 at 8:24 AM, Mladen Turk mt...@apache.org wrote: On 10/15/2010 04:57 PM, Costin Manolache wrote: Are you going to replace DirContext ? If yes - great, but please first send a quick summary comparing your API with the other VFS around in apache. I think commons has few

Re: Creating tomcat VFS

2010-10-15 Thread Costin Manolache
On Fri, Oct 15, 2010 at 8:13 AM, Remy Maucherat r...@apache.org wrote: On Fri, 2010-10-15 at 07:57 -0700, Costin Manolache wrote: I remember many years back I was arguing in favor of DirContext - pro arguments were it's a standard, bundled in JDK, probably more target implementations

Re: Draft blog entry for review

2010-09-15 Thread Costin Manolache
It may be worth showing some code as well on how to start tomcat and use JMX to configure it. Maybe in a separate post. Costin On Wed, Sep 15, 2010 at 1:10 PM, Sylvain Laurent sylvain.laur...@m4x.orgwrote: you could add a word on persistence of the JMX configuration. As far as I understand,

Re: [PROPOSAL] Change the name of the default host in server.xml

2010-07-15 Thread Costin Manolache
On Thu, Jul 15, 2010 at 8:11 AM, Mark Thomas ma...@apache.org wrote: On 15/07/2010 15:16, Tim Funk wrote: -0 Since the host name should be a valid dns name(ok it doesn't need to be a valid dns name if Alias is used), choosing a default which doesn't have a valid dns name may cause woes.

Re: tomcat native - SSL setBIO()

2010-06-16 Thread Costin Manolache
On Tue, Jun 15, 2010 at 11:14 PM, jean-frederic clere jfcl...@gmail.comwrote: On 06/16/2010 07:08 AM, Mladen Turk wrote: On 06/16/2010 12:34 AM, Costin Manolache wrote: Hi, There are some methods in SSLContext to create and use a new BIO. Are there any examples/tests for this ? I

tomcat native - SSL setBIO()

2010-06-15 Thread Costin Manolache
Hi, There are some methods in SSLContext to create and use a new BIO. Are there any examples/tests for this ? I can't find how to attach the BIO to a socket, it seems SSL_set_bio is never called, can't figure what SSLContext.setBIO() does. Costin

Re: [VOTE] Move tomcat/trunk/modules to tomcat/modules

2010-05-19 Thread Costin Manolache
Not sure I understand the motivation for moving. If you must do it - could you wait few days ? I have quite a few changes, need to fix few tests. Almost done with the work project, will start having 20% time again this week. On the move - mostly -1, I don't like tree fragmentation. On May 19,

Re: [VOTE] Move tomcat/trunk/modules to tomcat/modules

2010-05-19 Thread Costin Manolache
IMHO we should use the modules/ directory as a place to move stuff out of tomcat 'core', or develop stuff that is optional and only benefits a subset of users. They can be included in a tomcat-all or extra download if ready, but they should be released independently. Tags are pretty cheap - not

Re: Tomcat 7, Valve - Filter conversion, and container-managed authentication/authorization

2010-04-30 Thread Costin Manolache
IMHO filters like securityfilter are the right solution for authentication, users can use them in any container and have full control over everything. It is possible to add some hooks into tomcat so that filters like this can fully replace the built-in authentication, for example using 'magic'

Re: GSoC Tomcat SPDY Connectors

2010-04-04 Thread Costin Manolache
On Sun, Apr 4, 2010 at 6:36 PM, Felix Kurth xil...@googlemail.com wrote: Hi I am still working on my Proposal for GSoC. I had a closer look at the sources of org/apache/coyote and also modules/tomcat-lite/java/org/apache/tomcat/lite/http. Now I have more than one Idea how to achieve the

Re: GSoC Tomcat SPDY Connectors

2010-04-03 Thread Costin Manolache
There is an implementation of SPDY client and server on modules/tomcat-lite/java/org/apache/tomcat/lite/http/SpdyConnection - it's the previous version, didn't have time to update it - and I won't probably have until May, getting close to a launch. Note that at the moment SPDY can't be fully

Re: Chunked encoding should be used also when not using keepalive

2010-04-02 Thread Costin Manolache
The question is what to use by default - yes, the spec allows you to use either. Closing the connection has the benefit of saving few bytes on network and maybe few cycles on server. Chunked has the benefit of better detecting failures - since a close could happen for other reasons besides

Re: Chunked encoding should be used also when not using keepalive

2010-04-01 Thread Costin Manolache
+1 on switching to chunked by default. I don't think the extra few bytes are a problem ( or few extra objects/cycles on server ) - at least compared with not knowing if the response was really fully sent. Costin 2010/4/1 Óscar Frías Barranco ofr...@trabber.com Hello. Currently Tomcat HTTP

Re: Reusing instances

2010-03-11 Thread Costin Manolache
AM, jean-frederic clere wrote: On 03/11/2010 08:30 AM, Mladen Turk wrote: On 03/11/2010 07:52 AM, Costin Manolache wrote: On Wed, Mar 10, 2010 at 10:28 PM, Mladen Turkmt...@apache.org wrote: On 03/10/2010 11:10 PM, Costin Manolache wrote: You want to have each webapp served

Re: Reusing instances

2010-03-10 Thread Costin Manolache
You want to have each webapp served by a different process ? Or even different versions of a webapp in a different process ? Sounds very good ! Costin On Wed, Mar 10, 2010 at 6:17 AM, Mladen Turk mt...@apache.org wrote: On 03/10/2010 02:58 PM, Mark Thomas wrote: Work directory, temp

Re: Reusing instances

2010-03-10 Thread Costin Manolache
On Wed, Mar 10, 2010 at 10:28 PM, Mladen Turk mt...@apache.org wrote: On 03/10/2010 11:10 PM, Costin Manolache wrote: You want to have each webapp served by a different process ? Or even different versions of a webapp in a different process ? First goal is to get rid of connectors and use

Re: Console for Tomcat

2010-03-02 Thread Costin Manolache
There is a servlet that dumps all JMX objects - in a strange format ( like manifest or INI file - not hard to parse ). Would be great ( and quite easy ) to make it also output json. All information you want should be there - and much more. Exposing new data is also easy. You can also use some of

Re: jk/cluster - intelligent systems load

2010-02-19 Thread Costin Manolache
On Fri, Feb 19, 2010 at 8:51 AM, jean-frederic clere jfcl...@gmail.comwrote: On 02/19/2010 05:19 PM, Mladen Turk wrote: On 02/19/2010 05:06 PM, Henri Gomez wrote: Not a mod_proxy guru, but filtering X-header from responses should be near trivial based on past experience with the proxy

Re: jk/cluster - intelligent systems load

2010-02-18 Thread Costin Manolache
On Thu, Feb 18, 2010 at 12:00 AM, jean-frederic clere jfcl...@gmail.comwrote: On 02/17/2010 10:46 PM, Costin Manolache wrote: On Wed, Feb 17, 2010 at 11:58 AM, Mladen Turk mt...@apache.org wrote: On 02/17/2010 07:37 PM, Costin Manolache wrote: On Wed, Feb 17, 2010 at 12:38 AM, Mladen

Re: jk/cluster - intelligent systems load

2010-02-18 Thread Costin Manolache
be a bit tricky if you want to use multiple variables, but doable. Costin 2010/2/18, Costin Manolache cos...@gmail.com: On Thu, Feb 18, 2010 at 12:00 AM, jean-frederic clere jfcl...@gmail.comwrote: On 02/17/2010 10:46 PM, Costin Manolache wrote: On Wed, Feb 17, 2010 at 11:58 AM

Re: jk/cluster - intelligent systems load

2010-02-17 Thread Costin Manolache
On Wed, Feb 17, 2010 at 12:38 AM, Mladen Turk mt...@apache.org wrote: On 02/16/2010 06:57 PM, Costin Manolache wrote: I think the main driver for replacing ajp is the 2-directional protocols - and if we replace it, why invent a new protocol and not just adopt SPDY, which has all we need

Re: jk/cluster - intelligent systems load

2010-02-17 Thread Costin Manolache
On Wed, Feb 17, 2010 at 11:58 AM, Mladen Turk mt...@apache.org wrote: On 02/17/2010 07:37 PM, Costin Manolache wrote: On Wed, Feb 17, 2010 at 12:38 AM, Mladen Turkmt...@apache.org wrote: The reasons I suggest using SPDY as a replacement for AJP - and supporting SPDY I have nothing

Re: jk/cluster - intelligent systems load

2010-02-16 Thread Costin Manolache
On Tue, Feb 16, 2010 at 1:38 AM, Mladen Turk mt...@apache.org wrote: On 02/16/2010 10:21 AM, Mark Thomas wrote: On 16/02/2010 09:08, Mladen Turk wrote: On 02/16/2010 09:56 AM, Mark Thomas wrote: The other thing it potentially allows is the cluster to tell the proxy about which nodes are

Re: Tomcat-Lite update

2010-01-08 Thread Costin Manolache
On Fri, Jan 8, 2010 at 2:15 AM, Henri Gomez henri.go...@gmail.com wrote: Any comments on including the experimental SPDY support ( http://www.chromium.org/spdy/spdy-protocol ) ? I know we had countless debates on JK2 and http proxies, but some extra code to try out doesn't hurt :-)

Re: Tomcat-Lite update

2010-01-07 Thread Costin Manolache
On Wed, Jan 6, 2010 at 12:13 AM, Mark Thomas ma...@apache.org wrote: On 06/01/2010 00:27, Costin Manolache wrote: Also, I would like to know if other comitters are OK with (temporarily - i.e. until the 7.0 release vote) including lite in the tomcat7 builds, so people can try it out. How

Tomcat-Lite update

2010-01-05 Thread Costin Manolache
Hi, I'm still working on lite - right now my primary goal is to finish the connector, and have it usable as part of tomcat7, along with nio and apr connectors. The lite connector is based on nio ( could support apr as well ), but is intended to be directly usable by users - it supports both

Re: SSL Tomcat

2009-11-18 Thread Costin Manolache
Sa de Souza Signed by - PrivaSphere AG s...@privasphere.com wrote: Hello, I just added the patch created by Costin Manolache to prevent the MITM attack during re-negotiations for JSSE to our platform. I performed some tests and at first I found the solution quite elegant. Nevertheless, when I

Re: SPNEGO/NEGOTIATE implementation for Apache Geronimo

2009-11-13 Thread Costin Manolache
On Fri, Nov 13, 2009 at 6:44 AM, Mark Thomas ma...@apache.org wrote: Ashish Jain wrote: 4) Does this require code changes to BasicAuthenticator FormAuthenticator, AuthenticatorBase of tomcat. Basic and form - no. Base - maybe. Please provide your comment and suggestions. My instinct

Re: svn commit: r834544 - /tomcat/tc6.0.x/trunk/STATUS.txt

2009-11-11 Thread Costin Manolache
On Wed, Nov 11, 2009 at 1:36 AM, Konstantin Kolinko knst.koli...@gmail.comwrote: 2009/11/10 ma...@apache.org: Author: markt Date: Tue Nov 10 16:57:29 2009 New Revision: 834544 URL: http://svn.apache.org/viewvc?rev=834544view=rev Log: Proposal for cve-2009-3555 work-around

Re: SSL Tomcat

2009-11-11 Thread Costin Manolache
: On 11/11/2009 12:11 AM, Costin Manolache wrote: openssl s_client ... Type R ( to renegotiate ). Unfortunately renegotiation is handled transparently and did work quite well... bummer, I will see what needs to be done today. Costin On Tue, Nov 10, 2009 at 10:53 PM, Filip Hanik - Dev

Re: SSL Tomcat

2009-11-11 Thread Costin Manolache
release or switch to NIO or APR connectors ( APR if they upgraded their openssl ). Costin On Wed, Nov 11, 2009 at 10:29 AM, Filip Hanik - Dev Lists devli...@hanik.com wrote: On 11/11/2009 11:13 AM, Costin Manolache wrote: Sorry for my confusion - didn't realize NIO has its own ssl

Re: SSL Tomcat

2009-11-10 Thread Costin Manolache
openssl s_client ... Type R ( to renegotiate ). Unfortunately renegotiation is handled transparently and did work quite well... Costin On Tue, Nov 10, 2009 at 10:53 PM, Filip Hanik - Dev Lists devli...@hanik.com wrote: I don't think NIO allows a renegotiation as it is today. I will have to

Re: SSL Tomcat

2009-11-09 Thread Costin Manolache
On Mon, Nov 9, 2009 at 8:04 AM, Konstantin Kolinko knst.koli...@gmail.comwrote: 2009/11/9 Mark Thomas ma...@apache.org: Summarising the information gathered so far from various channels (thanks to Bill B., Bill W. Rainer who have done most of the actual work to find the info below).

Re: SSL Tomcat

2009-11-09 Thread Costin Manolache
On Mon, Nov 9, 2009 at 10:47 AM, Costin Manolache cos...@gmail.com wrote: On Mon, Nov 9, 2009 at 8:04 AM, Konstantin Kolinko knst.koli...@gmail.com wrote: 2009/11/9 Mark Thomas ma...@apache.org: Summarising the information gathered so far from various channels (thanks to Bill B., Bill

Re: SSL Tomcat

2009-11-09 Thread Costin Manolache
it, it depends on having a .keystore with a 'localhost' cert, didn't find any other SSL tests in the suite. Forgot that you need to read() after startHandshake() - just cutpasted the code from JsseSupport and it worked. Costin On Mon, Nov 9, 2009 at 1:32 PM, Costin Manolache cos...@gmail.com

Re: svn commit: r834289 - /tomcat/trunk/java/org/apache/tomcat/util/net/jsse/JSSESocketFactory.java

2009-11-09 Thread Costin Manolache
Right, need to invalidate as well. The request will not be executed - how can he continue the attack ? On Mon, Nov 9, 2009 at 7:49 PM, Bill Barker billwbar...@verizon.net wrote: cos...@apache.org wrote in message news:20091110010244.4f8382388...@eris.apache.org... Author: costin Date:

Re: Tomcat-Lite update

2009-11-07 Thread Costin Manolache
/11/6 Costin Manolache cos...@gmail.com: On Fri, Nov 6, 2009 at 12:19 PM, Tim Funk funk...@apache.org wrote: I am intrigued by the idea and have similar constraints (kids+job). My longer term interest in lite was a simpler deployment and moving config into scripting and out of xml

  1   2   3   4   >