Re: Tomcat 6 NIO consumes all CPU until restarted

2007-10-27 Thread Rémy Maucherat
On 10/27/07, Peter [EMAIL PROTECTED] wrote: Has anyone experience any similar behaviour? Any ideas or suggestions? Why do you think it is a good idea to use both the NIO and APR connectors ? (the consequence of that is you're going to run in twice as many bugs) Rémy

Re: APR-https failed (the server.xml is correct definitely)

2008-03-04 Thread Rémy Maucherat
On Tue, Mar 4, 2008 at 3:43 AM, Hanks Wang (hanwan) [EMAIL PROTECTED] wrote: Hi guys, [ISSUE RESOLVED] I change back to Tomcat5.5 and everything works well now. write it here in case someone meet same issue in future. The configuration did change in Tomcat 6.0. Rémy

Re: AJP Flush Packet causing text/plain output

2007-09-26 Thread Rémy Maucherat
On 9/24/07, Larry Reisler [EMAIL PROTECTED] wrote: We recently switched our development JBOSS instance from 4.05GA to 4.21GA Which AJP connector is used in JBoss exactly ? Normally, the two connectors in org.apache.coyote.ajp cannot be doing what you see. Rémy

Re: %3B in path-info

2008-04-10 Thread Rémy Maucherat
On Fri, Apr 11, 2008 at 12:19 AM, Jess Holle [EMAIL PROTECTED] wrote: Done. [https://issues.apache.org/bugzilla/show_bug.cgi?id=44803] Guys, you've been going crazy about a (known) security issue: CVE-2007-1860 See http://tomcat.apache.org/security-jk.html Rémy

Re: %3B in path-info

2008-04-10 Thread Rémy Maucherat
On Fri, Apr 11, 2008 at 1:58 AM, Rainer Jung [EMAIL PROTECTED] wrote: Rémy, I know that we cleaned reencoding of forwarded URLs up in the context of the CVE and mod_jk. The semicolon wasn't involved in the CVE though and at that time it would have been easier, if the AJP connectors had

Re: %3B in path-info

2008-04-11 Thread Rémy Maucherat
On Fri, Apr 11, 2008 at 4:51 AM, Jess Holle [EMAIL PROTECTED] wrote: Agreed -- but that draws me back to the need for an option (or default behavior!) in mod_proxy_ajp wherein the URL passed to via AJP is not decoded. The thing is that it is news to me that mod_proxy_ajp passes decoded URLs

Re: ArrayIndexOutOfBoundsException at InternalOutputBuffer.write

2008-06-10 Thread Rémy Maucherat
On Tue, Jun 10, 2008 at 2:54 PM, Mark Thomas [EMAIL PROTECTED] wrote: Can you provide the source of the simplest JSP that causes the error? What we need is a test case we can use to investigate this. The simpler the test case the better. I suppose he should increase the header size, or

Re: ArrayIndexOutOfBoundsException at InternalOutputBuffer.write

2008-06-10 Thread Rémy Maucherat
On Tue, Jun 10, 2008 at 4:17 PM, Jörg Fröber [EMAIL PROTECTED] wrote: An explizit call of response.flushBuffer() seems to have solved the problem. So it could indeed be worth it if you provide a test JSP. Rémy - To start a

Re: Shared Library Files in Tomcat 6.0?

2006-10-26 Thread Rémy Maucherat
On 10/26/06, S_Ewing [EMAIL PROTECTED] wrote: Thanks. So from what I understand, I don't have an option in TC 6 that maps to the $CATALINA_BASE/shared/{classes, lib} in all previous versions, and would necessarily have to have multiple copies of a jar file if it is required by different web

Re: Comet + tomcat6

2006-11-07 Thread Rémy Maucherat
The place to look is: http://tomcat.apache.org/tomcat-6.0-doc/aio.html I have added a bigger warning that these features require the APR or NIO HTTP connector. Rémy - To start a new topic, e-mail: users@tomcat.apache.org To

Re: Tomcat IIS redirector seems to cause high CPU cycle

2006-11-09 Thread Rémy Maucherat
http://issues.apache.org/bugzilla/show_bug.cgi?id=40909 Rémy - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: tomcat 6.0 browser support

2006-11-09 Thread Rémy Maucherat
On 11/9/06, silvanoh722 [EMAIL PROTECTED] wrote: hi. I've installed tomcat6.0 with comet support. I've tried the example code found at http://tomcat.apache.org/tomcat-6.0-doc/aio.html. when I call the servlet, the browser wait for a response... the event() methods terminate normally, and run()

Re: Tomcat 6 and comet

2006-11-13 Thread Rémy Maucherat
On 11/13/06, Peter Rossbach [EMAIL PROTECTED] wrote: Hi, Comet style communication work also with the new NIO Connector. Test it with Tomcat 6.0.1 or the svn trunk. Connector port=8084 URIEncoding=UTF-8 connectionTimeout=30

Re: Tomcat 6.0.2 and JSF

2006-11-23 Thread Rémy Maucherat
On 11/23/06, Martin Dubuc [EMAIL PROTECTED] wrote: I have seen a posting that seems to suggest that the same issue exists when running JSF 1.2. Such a post does not exist. A JSF bug with EL validation has been reported and fixed in 6.0.1. It could be that the TLDs are not valid (Tomcat is

Re: No MBeans for any jsp in Tomcat 6

2006-11-25 Thread Rémy Maucherat
On 11/25/06, Tim Hannon [EMAIL PROTECTED] wrote: Using Tomcat 5.5.9 and jconsole I like viewing statistics for servlets and jsp pages using MBeans in Catalina/Servlets node in MBeans tree of jconsole. These MBeans includes useful statistics like request count, error count, processing time, and

Re: APR / SSL in 5.5.20

2006-11-27 Thread Rémy Maucherat
On 11/28/06, Daniel Blumenthal [EMAIL PROTECTED] wrote: SSLCertificateFile=${catalina.base}/conf/localhost.crt SSLCertificateKeyFile=${catalina.base}/conf/localhost.key / I can export the .crt file from the .kdb file, but how do I get the key file? You should look in the

Re: Memory leaks on webapp redeploy

2006-11-28 Thread Rémy Maucherat
On 11/28/06, Mike Quilleash [EMAIL PROTECTED] wrote: As a brief aside I found the following code in the WebAppClassLoader.releaseResources() of Tomcat 6, so it looks like some of the well-known caches are being cleared out by Tomcat itself. Are you using 5.5 or 6.0 ? If you're using 5.5, then

Re: Is jsp designed for use by large websites

2006-11-30 Thread Rémy Maucherat
On 11/30/06, Nelson, Tracy [EMAIL PROTECTED] wrote: With PHP, you tend to have two windows open: editor and browser. Change the page in the editor, save the change, hit refresh on the browser: boom, there's your change. You can do that with JSP too (including taglibs which can be written as

Re: Using Grizzly with Tomcat

2007-02-12 Thread Rémy Maucherat
On 2/12/07, Iván Sánchez [EMAIL PROTECTED] wrote: Hei, I am trying to develop a server which uses Comet. According to http://tomcat.apache.org/tomcat-6.0-doc/aio.html I need a nio http connector. I think you need to read the Tomcat documentation again then. This is not what is written on the

Re: Tomcat 5.5 Context level Logger element

2007-02-23 Thread Rémy Maucherat
On 2/23/07, Tom Crinson [EMAIL PROTECTED] wrote: The only way I have found to get round this problem is to define my own Struts Request processor and override processException, and log the uncaught exceptions in there to a logger specified in the webapp log4j.properties. So, my question is, is

Re: Tomcat 6 will not compile under Windows with the current Java

2007-03-02 Thread Rémy Maucherat
On 3/2/07, Ron Wheeler [EMAIL PROTECTED] wrote: The build could be eliminated if the binary distribution contained the extras but it does not. I assume that when everyone using log4j has the same problem, it will. This is not going to happen. It is quite evident the compilation fails when

Re: Tomcat 6 will not compile under Windows with the current Java

2007-03-02 Thread Rémy Maucherat
On 3/2/07, Ron Wheeler [EMAIL PROTECTED] wrote: How soon will Tomcat support the current Java version? Is it a big problem to include the extras, if the current Java is not supported? At the moment, Tomcat 6 is developed and builds on Java 5, and runs on Java 5 and 6. I'd like to understand

Re: Tomcat 6 - includes broken

2007-03-04 Thread Rémy Maucherat
On 3/4/07, Patrick Lee [EMAIL PROTECTED] wrote: But I can't do this: [EMAIL PROTECTED] file = /path/to/something.jsp % It works for me (this will be tested in the TCK, so there can't be any regressions on this sort of feature). The path is still relative to the webapp root, of course. Rémy

Re: Migration from 5.5.20 to 6.0.10: parser issue on application deployment

2007-03-04 Thread Rémy Maucherat
On 3/3/07, Etienne Giraudy [EMAIL PROTECTED] wrote: Shall this be considered as a regression as in that case tomcat configuration is somehow altered by a web app? (in that case I'll fill a bug in bugzilla)) I don't think there can be a change of behavior in this sort of thing between TC 5.5

Re: Tomcat 6 - includes broken

2007-03-04 Thread Rémy Maucherat
On 3/4/07, Patrick Lee [EMAIL PROTECTED] wrote: I would assume it works in general and is specific to my instance here. Note that [EMAIL PROTECTED] file = /path/to/something.jsp % works fine if I am inside the root directory of the webapp, If however I have that include inside

Re: Migration from 5.5.20 to 6.0.10: parser issue on application deployment

2007-03-04 Thread Rémy Maucherat
On 3/4/07, Etienne Giraudy [EMAIL PROTECTED] wrote: I guess that the point that is questionnable here is the way the API is designed: modifying the system property 'legal' and, AFAIK, it is the only way to choose the parser implementation we want to use

Re: CPU usage with APR and connectionTimeout impact

2009-04-02 Thread Rémy Maucherat
On Tue, Mar 31, 2009 at 2:40 PM, yann grostete yann.grost...@alcatel-lucent.fr wrote: -with connectionTimeout=0, the process tomcat uses a huge percentage of CPU, even if there is no traffic. but we doesn't observe any problem and the response time is good. Please use a timeout value 0.

Re: [SECURITY] CVE-2009-0580 Apache Tomcat User enumeration vulnerability with FORM authentication

2009-06-04 Thread Rémy Maucherat
On Thu, Jun 4, 2009 at 6:48 PM, Christopher Schultz ch...@christopherschultz.net wrote: I don't see any information disclosure vulnerability in the first place, and I don't see how your patch would have fixed it. ??! The behavior was different if the user is not found of if the password is

Re: XSS vulnerability in Tomcat Host Header

2009-07-22 Thread Rémy Maucherat
On Wed, Jul 22, 2009 at 2:37 PM, Mark Thomasma...@apache.org wrote: You'll need to provide more details. Nothing stands out from the security pages. Please provide step by step instructions to reproduce from a clean Tomcat installation. Please also note that potential security

Re: APR, sendfile and logging of response size

2007-03-05 Thread Rémy Maucherat
On 3/5/07, Markus Schönhaber [EMAIL PROTECTED] wrote: Is there a way to use APR and sendfile and still get the Base Connector's behaviour wrt the response size? If so, which? No, it is not possible without hacks that I don't want to add. The reponse will be asynchronously (or not, it depends

Re: trimDirectiveWhitespaces not working

2007-03-06 Thread Rémy Maucherat
On 3/6/07, Tim Funk [EMAIL PROTECTED] wrote: trimDirectiveWhitespaces is only applicable at servlet configuration time. See $TOMCAT_HOME/conf/web.xml There's a new directive and new jsp property which is supposed to do the same as our trimSpaces (of course, it's far more complicated). While it

Re: trimDirectiveWhitespaces not working

2007-03-06 Thread Rémy Maucherat
On 3/6/07, Tim Funk [EMAIL PROTECTED] wrote: D'oh! I had an older copy of the spec without those notes. It's a very minor issue anyway (trimSpaces doesn't do all that much). Rémy - To start a new topic, e-mail:

Re: Possible JSTL/EL bug in 6.0.10

2007-03-07 Thread Rémy Maucherat
On 3/7/07, David Delbecq [EMAIL PROTECTED] wrote: [1] unified EL refers to jsp 2.1 specifications, i was referring to 2.0 specifications. To ensure you are using 2.1 specifications, check mainly that - your taglib contains jsp-version2.1/jsp-version - your webapplication is properly configured

Re: Possible JSTL/EL bug in 6.0.10

2007-03-08 Thread Rémy Maucherat
On 3/8/07, Gerald Holl [EMAIL PROTECTED] wrote: I extracted the jstl-1.2jar file and found many .tld files. Nearly all of them contain jsp-version1.2/jsp-version and not 2.1 as you said. Only tags version 2.1 will be passed deferred expressions. The .tlds need to have a declaration like this

Re: Possible JSTL/EL bug in 6.0.10

2007-03-08 Thread Rémy Maucherat
On 3/8/07, Gerald Holl [EMAIL PROTECTED] wrote: Well, I think I can't give you access to all the details of our (secret) project. Anyway, thanks for the offer. Ok, I am obviously not going to look at your application. What I meant is I would look at a minimal war (containing only one JSP).

Re: Container logging for Tomcat 6.0.x with log4j-1.2.14

2007-03-09 Thread Rémy Maucherat
On 3/9/07, Erik Bertelsen [EMAIL PROTECTED] wrote: 2007/3/9, Filip Hanik - Dev Lists [EMAIL PROTECTED]: you'll need the modified juli adapter, http://tomcat.apache.org/dev/dist/m2-repository/org/apache/tomcat/extras/ Is there any reason that the extras stuff isn't made available in compiled

Re: BUG? - Mysterious chunked behavior

2007-03-11 Thread Rémy Maucherat
On 3/11/07, Peter Kennard [EMAIL PROTECTED] wrote: or bug report for it If you file a bug for this, or for the issue you describe in your other thread, I will immediately resolve them as invalid, obviously. Rémy - To start a

Re: BUG? - Mysterious chunked behavior

2007-03-11 Thread Rémy Maucherat
On 3/11/07, Peter Kennard [EMAIL PROTECTED] wrote: Curious you mean by this? What is obvious? It's quite simple. You've made a number of claims in your two threads, every time supposedly verified by yourself, and for every one of them, I can tell you that the opposite is actually true. So

Re: BUG? - Mysterious chunked behavior

2007-03-11 Thread Rémy Maucherat
On 3/12/07, Peter Kennard [EMAIL PROTECTED] wrote: Unless dropping the first data filled chunk is defined as proper and documented, and supported, behavior, I would consider this a bug. As I said in my previous post, so far, none of your claims correspond to the actual behavior of Tomcat. The

Re: apache-tomcat-6.0.10 OutOfMemoryError

2007-03-12 Thread Rémy Maucherat
On 3/12/07, Filip Hanik - Dev Lists [EMAIL PROTECTED] wrote: add -XX:+HeapDumpOnOutOfMemoryError to your JAVA_OPTS, then you can zip up the file that gets generated, make it available to us and I'll take a look at it Most likely it's because of session creation. (you should not be too naive

Re: Problem getting comet to work

2007-03-12 Thread Rémy Maucherat
On 3/12/07, mattd1812 [EMAIL PROTECTED] wrote: servlet instanceof CometProcessor Will return true (regardless of your custom CL hierarchy) if your servlet implements the interface. That interface is in the lib/catalina.jar JAR, and should be loaded from there. Rémy

Re: Tomcat 6 - Help with storing updated configuration

2007-03-18 Thread Rémy Maucherat
On 3/18/07, Ber Past [EMAIL PROTECTED] wrote: I'm using the JMX interface to configure Tomcat 6. At the end of the configuration I would like to store the modified configuration. I'm currently calling the storeConfig method of the MBean having object name Catalina:type=Server. This calls the

Re: Comet in tomcat

2007-03-22 Thread Rémy Maucherat
On 3/22/07, Vincent Demay [EMAIL PROTECTED] wrote: Hi all, I'm working on server side pushing integration in Wicket, and I saw Tomcat6 implements comet : http://tomcat.apache.org/tomcat-6.0-doc/aio.html Have you got a complete example of an application using cometProcessor? No real

Re: Tomcat 6.0.10 Comet question

2007-03-30 Thread Rémy Maucherat
I have made some adjustments. An exception there should produce an error report, and a sendError should do the same. However, an event.close should simply end the processing of the request without any change of the response state (which will be whatever was set in the servlet). Note: the

Re: Tomcat 6.0.10 Comet question

2007-04-02 Thread Rémy Maucherat
On 4/2/07, Sebastiaan van Erk [EMAIL PROTECTED] wrote: Hi, Thanks for the response. To get these adjustments, do I need to download tomcat from a subversion (or CVS) repository? Yes. I was also just discovered that in the 6.0.10 version that an exception in the END event causes the END

Re: Tomcat 6.0.10 Comet question

2007-04-02 Thread Rémy Maucherat
On 4/2/07, Rémy Maucherat [EMAIL PROTECTED] wrote: I was also just discovered that in the 6.0.10 version that an exception in the END event causes the END event to called again; this means that an uncaught RuntimeException could potentially cause Tomcat to go into a loop of an infinite

Re: Tomcat 6.0.10 Comet question

2007-04-03 Thread Rémy Maucherat
On 4/3/07, Sebastiaan van Erk [EMAIL PROTECTED] wrote: Hi, Thanks again for the reply. I can't reproduce the END event so probably I was mistaken, sorry about that. It is indeed the ERROR/TIMEOUT event. If an exception occurs during the handling of this event (an unforseen runtime exception for

Re: Tomcat 6.0.10 Comet question

2007-04-03 Thread Rémy Maucherat
On 4/3/07, Filip Hanik - Dev Lists [EMAIL PROTECTED] wrote: yes, a proposal is coming up, my guess is that you will do a {public int write(ByteBuffer)} on the CometEvent object. returns number of bytes written, but nothing is set in stone yet I hope that your proposal does not include that

Re: Another Comet 6.0.10 question

2007-04-04 Thread Rémy Maucherat
On 4/4/07, Sebastiaan van Erk [EMAIL PROTECTED] wrote: Hi, The pages on Comet say the following about the read event: EventType.READ: This indicates that input data is available, and that one read can be made without blocking. The available and ready methods of the InputStream or Reader may be

Re: Another Comet 6.0.10 question

2007-04-04 Thread Rémy Maucherat
On 4/4/07, Sebastiaan van Erk [EMAIL PROTECTED] wrote: 2) I keep getting READ events after reading all data from the stream (EOF reached). Now I don't want to close the event because I still want to write stuff, but I can't just return from the read event because I'll get another, causing a busy

Re: Another Comet 6.0.10 question

2007-04-04 Thread Rémy Maucherat
On 4/4/07, Rémy Maucherat [EMAIL PROTECTED] wrote: Ok, that javadoc is a little bit out of date (ex: returning false). However, it is still valid: if you get a read event, you're supposed to do at least one read, and it could return -1 (if it got that from the client). If it fails to read data

Re: Another Comet 6.0.10 question

2007-04-04 Thread Rémy Maucherat
On 4/4/07, Sebastiaan van Erk [EMAIL PROTECTED] wrote: Ok, so I get a -1 on a read. Now what do I do? If I just return from the event handler I immediately get another read :-(. If I close the event I can't do output anymore. Since there's not going to be any additional data from the client,

Re: Another Comet 6.0.10 question

2007-04-04 Thread Rémy Maucherat
On 4/4/07, Sebastiaan van Erk [EMAIL PROTECTED] wrote: Hmm... I don't work under Windows, I use Ubuntu Linux, but I'll try figure out why it keeps sending me READ events after the end of stream was reached; I'll get back to you on that one (I'll see if I can make a small test program which

Re: Tomcat 6 NIO connector/CometProcessor goes to 100% CPU usage

2007-04-06 Thread Rémy Maucherat
On 4/6/07, Elias Naur [EMAIL PROTECTED] wrote: Hi, I'm experimenting with the new tomcat 6 NIO connector to get a CometProcessor servlet running. I've run into a problem that I hope you guys can help me with. I'm testing a servlet that looks like this: public final class QueryEvent extends

Re: Tomcat 6 NIO connector/CometProcessor goes to 100% CPU usage

2007-04-06 Thread Rémy Maucherat
On 4/6/07, Elias Naur [EMAIL PROTECTED] wrote: I'm aware that a correct implementation must empty the buffer on a READ event, but as I stated in the original post, a READ event is never received (not even when the client forces a disconnect), only the initial BEGIN event, so had I included a

Re: Tomcat 6 NIO connector/CometProcessor goes to 100% CPU usage

2007-04-06 Thread Rémy Maucherat
On 4/7/07, Elias Naur [EMAIL PROTECTED] wrote: No. Compiling and enabling the APR connector instead of the NIO connector made the problem go away. There were still no ERROR events sent after the client disconnect (I guess the connection might timeout sometime later), but the original problem of

Re: Memory Leak with Comet

2007-04-24 Thread Rémy Maucherat
On 4/24/07, Reich, Matthias [EMAIL PROTECTED] wrote: If memory allocation of Tomcat continues until I see messages like org.apache.coyote.http11.Http11NioProcessor: Error processing request java.lang.OutOfMemoryError: Java heap space There are leaks that have been fixed in the NIO connector,

Re: Comet question. Problem reading from http input stream

2007-04-24 Thread Rémy Maucherat
On 4/23/07, Martin Perez [EMAIL PROTECTED] wrote: Any suggestions? I would try to avoid using directly Object*Stream, to see what happens, and verify the validity of the data which is sent and received. Rémy - To start a new

Re: Memory Leak with Comet

2007-04-24 Thread Rémy Maucherat
On 4/24/07, Reich, Matthias [EMAIL PROTECTED] wrote: I did a fresh build this morning from the SVN trunk, and I see the memory leak with both NIO and APR connector. For each browser I run, I have at most 3 active connections at a time. I think, acually there are at most 2 active connections

Re: Comet question. Problem reading from http input stream

2007-04-24 Thread Rémy Maucherat
On 4/24/07, Martin Perez [EMAIL PROTECTED] wrote: Hi Rémy, Actually, without using Object*Stream everything seems to work. I'm currently using raw I/O streams and the communication is ok. I guess people on the list would be interesting to know that currently doesn't work with Object*Streams,

Re: Memory Leak with Comet

2007-04-25 Thread Rémy Maucherat
On 4/25/07, Reich, Matthias [EMAIL PROTECTED] wrote: First I ran Tomcat with a single connector with attribute maxThreads=20, and started it with -Xmx10m. In the dump I saw 103 instances of class org.apache.coyote.http11.Http11AprProcessor and the same number of all the attached objects like

Re: Memory Leak with Comet

2007-04-25 Thread Rémy Maucherat
On 4/25/07, Reich, Matthias [EMAIL PROTECTED] wrote: So far, I have the feeling that I am the only one who has seen these memory leaks with asynchronous Comet responses. I tried with a number of variations, e.g. - let the browser wait for 500 millis before sending the next poll after

Re: Memory Leak with Comet

2007-04-25 Thread Rémy Maucherat
On 4/25/07, Filip Hanik - Dev Lists [EMAIL PROTECTED] wrote: Do you have a small test case, if nothing else, your connections should eventually timeout and that should recycle the processors. As long as the comet connection is active, the processor is spoken for. He submitted a test webapp

Re: Memory Leak with Comet

2007-04-25 Thread Rémy Maucherat
On 4/25/07, Filip Hanik - Dev Lists [EMAIL PROTECTED] wrote: then it's normal behavior, he'll just have to wait for a timeout or the client will disconnect I don't know for sure, of course, but it's my theory at the moment. Rémy

Re: comet events and connections

2007-04-25 Thread Rémy Maucherat
On 4/25/07, Daniel Doubleday [EMAIL PROTECTED] wrote: Here is the stack trace: Exception in thread Thread-17 java.lang.NullPointerException at org.apache.catalina.connector.CometEventImpl.close(CometEventImpl.java:84) at

Re: Comet problem when writing a lot of data to the OutputStream

2007-04-25 Thread Rémy Maucherat
On 4/26/07, Filip Hanik - Dev Lists [EMAIL PROTECTED] wrote: Sebastiaan van Erk wrote: Hi, The fixes seem to work well, thanks again! :-) Excellent, thanks for bringing it to my attention And it was committed before tagging, not 5 minutes after as usually happens. I feel lucky today. Rémy

Re: Memory Leak with Comet

2007-04-26 Thread Rémy Maucherat
On 4/26/07, Reich, Matthias [EMAIL PROTECTED] wrote: The clear semantics of this approach would be: Processing is the same as for synchronous requests , except that the RequestProcessor thread is released from processing early, and another thread (or several threads that synchronize when

Re: comet events and connections

2007-04-26 Thread Rémy Maucherat
On 4/26/07, Reich, Matthias [EMAIL PROTECTED] wrote: Well, anyway the lifecycle should be well-defined, and I doubt that it currently is well-defined. If I try to find a better name for class CometEvent which reflects the lifecycle of it's instances according to the current implementation,

Re: Memory Leak with Comet

2007-04-26 Thread Rémy Maucherat
On 4/26/07, Reich, Matthias [EMAIL PROTECTED] wrote: Thanks for the clear statement! As I do see processing objects that are not recycled, I now know that I have to postpone my efforts of using the CometProcessor interface. Maybe I'll retry with Tomcat 6.1 when it is released ;-) If some day

Re: comet: missing initial READ event?

2007-04-26 Thread Rémy Maucherat
On 4/26/07, Sebastiaan van Erk [EMAIL PROTECTED] wrote: The http://tomcat.apache.org/tomcat-6.0-doc/aio.html documentation clear states that I am not allowed to read from the input stream outside of the READ event; thus I'm not allowed to read in the BEGIN event. So the behavior I expect would

Re: comet: missing initial READ event?

2007-04-26 Thread Rémy Maucherat
On 4/26/07, Sebastiaan van Erk [EMAIL PROTECTED] wrote: Note that there really IS a bug here: request.getInputStream().available() returns 0 in the BEGIN event, so I cannot test if the data is already available there. However, the API seems cleaner to me anyway if you only allow reads within the

Re: how to close a comet request outside of an event?

2007-04-26 Thread Rémy Maucherat
On 4/26/07, Sebastiaan van Erk [EMAIL PROTECTED] wrote: I don't understand why the client does not get an immediate -1 (EOF) on the read() as soon as I do this. The socket itself does not need to be closed, but the output stream close should flush the output stream and call shutdownOutput() on

Re: Comet: problem with request.getParameter() in Comet POST requests

2007-04-26 Thread Rémy Maucherat
On 4/26/07, Sebastiaan van Erk [EMAIL PROTECTED] wrote: Hi, If the body of the POST request is not present at the time of the getParameter() call, it returns null even if the parameter value is set. Things don't work like this, obviously. Parameter parsing only occurs if nothing used

Re: Comet: problem with request.getParameter() in Comet POST requests

2007-04-27 Thread Rémy Maucherat
On 4/27/07, Sebastiaan van Erk [EMAIL PROTECTED] wrote: GET parameters, ie parameters in the URL will work. However, using Comet you shouldn't rely on parameters in the body, the body if for you usage, and your usage alone. Seems to me that this is a pretty common use case though with AJAX

Re: Memory Leak with Comet

2007-04-27 Thread Rémy Maucherat
On 4/28/07, Reich, Matthias [EMAIL PROTECTED] wrote: The problem is that the socket is added to the poller already within the Http11AprProcessor.event method. Due to this the process method can be invoked before the event method has done it's cleanup. I don't really understand how it can

Re: Comet: problem with request.getParameter() in Comet POST requests

2007-05-02 Thread Rémy Maucherat
On 5/2/07, Sebastiaan van Erk [EMAIL PROTECTED] wrote: What you seem to want is more in line with the asynchronous servlet (request, wait, response), which Filip and Remy pointed out is not the quite the same as Tomcat's Comet. Ideally, both models would be possible through single unified API,

Re: Comet: problem with request.getParameter() in Comet POST requests

2007-05-02 Thread Rémy Maucherat
On 5/2/07, Sebastiaan van Erk [EMAIL PROTECTED] wrote: Sorry about that, did not mean to say it is not possible to do a request, wait, response with Comet. All I'm trying to say is that Comet was not designed (at least, Filip stated this) for the async servlet model, and I tried to point out

Re: Form-based authentication example broken in Tomcat 6.0

2007-05-02 Thread Rémy Maucherat
On 5/2/07, Frank McCown [EMAIL PROTECTED] wrote: The default contents of the conf/tomcat-users.xml file *should* be tomcat-users user name=tomcat password=tomcat roles=tomcat / user name=role1 password=tomcat roles=role1 / user name=both password=tomcat roles=tomcat,role1 /

Re: Comet: problem with request.getParameter() in Comet POST requests

2007-05-02 Thread Rémy Maucherat
On 5/2/07, Sebastiaan van Erk [EMAIL PROTECTED] wrote: It's a race condition and the problem occurs quite infrequently (especially with small request bodies). The larger the request body of the POST request, the more likely it is that the problem occurs. I was testing at a few thousand request

Re: comet read event

2007-05-23 Thread Rémy Maucherat
On 5/23/07, Filip Hanik - Dev Lists [EMAIL PROTECTED] wrote: take a look at the documentation, the way you are reading it is incorrect. you need to take advantage of the available() method With a reader, it's ready(). Rémy -

Re: NPE when setting executor on AJP Connector

2007-05-24 Thread Rémy Maucherat
On 5/24/07, Mirko Nasato [EMAIL PROTECTED] wrote: Should I file a bug report? I was disappointed when I saw the performance results of the current executors. At the moment, you should not be using them. Rémy - To start a new

Re: NPE when setting executor on AJP Connector

2007-05-24 Thread Rémy Maucherat
On 5/24/07, Mirko Nasato [EMAIL PROTECTED] wrote: Rémy Maucherat wrote: I was disappointed when I saw the performance results of the current executors. At the moment, you should not be using them. Alright. I would suggest putting an EXPERIMENTAL! or similar warning in the docs and conf files

Re: Tomcat 6 classloader leak in Commons Pool

2007-06-08 Thread Rémy Maucherat
On 6/8/07, Diego Rodríguez Martín [EMAIL PROTECTED] wrote: It affects version 1.3 of commons pool. In tomcat 6, commons pool is embbeded in /tomcat-dbcp.jar/, and the docs don't say with version of commons is inside. It's that version. A new commons-pool version will be integrated when it's

Re: httpd vs. Tomcat performance

2010-03-24 Thread Rémy Maucherat
On Thu, Mar 25, 2010 at 1:50 AM, Mark Thomas ma...@apache.org wrote: Chris deserves a lot of the credit. Without his figures, it is just opinion. That's the second benchmark that I see today that has odd numbers. Rémy - To

Re: Tomcat 8.0.0-RC5: asynchron IO and back pressure with ReadListener

2014-01-30 Thread Rémy Maucherat
2014-01-30 Yann Simon yann.simon...@gmail.com: Hi, I wrote a sample app to demonstrate the problem: https://github.com/yanns/servlet31_async You can generate an exploded war with maven: mvn war:exploded I deployed the application in tomcat 8.0.0-RC10. The 2 upload form does work. The

Re: Tomcat 8.0.0-RC5: asynchron IO and back pressure with ReadListener

2014-01-30 Thread Rémy Maucherat
2014-01-30 Yann Simon yann.simon...@gmail.com: It means we cannot write real asynchronous reactive applications with servlet 3.1... disappointing. onDataAvailable is already something asynchronous, so starting an asynchronous operation from it to do the same thing you're supposed to do is not

Re: Tomcat 8.0.0-RC5: asynchron IO and back pressure with ReadListener

2014-03-19 Thread Rémy Maucherat
2014-03-19 16:36 GMT+01:00 Yann Simon yann.simon...@gmail.com: I have maybe found another problem: onAllDataRead is called with the same thread that is calling input.read. I am not aware of any requirement that says this is not allowed. Rémy

Re: Tomcat 8.0.0-RC5: asynchron IO and back pressure with ReadListener

2014-03-19 Thread Rémy Maucherat
2014-03-19 17:10 GMT+01:00 Yann Simon yann.simon...@gmail.com: 2014-03-19 17:05 GMT+01:00 Rémy Maucherat r...@apache.org: 2014-03-19 16:36 GMT+01:00 Yann Simon yann.simon...@gmail.com: I have maybe found another problem: onAllDataRead is called with the same thread that is calling

Re: Tomcat 8.0.0-RC5: asynchron IO and back pressure with ReadListener

2014-03-19 Thread Rémy Maucherat
2014-03-19 17:47 GMT+01:00 Yann Simon yann.simon...@gmail.com: This is because you're forking a thread, it won't concurrently invoke the two events (which would be invalid). Can you explain more please? I have difficulties to understand your sentence. It means the container has to wait

Re: Issue with RewriteValve and folders (tomcat 8.0.15)

2015-02-20 Thread Rémy Maucherat
2015-02-20 10:31 GMT+01:00 Jérémie Barthés j.bart...@oodrive.fr: I send you the patch i did to fix my issue with the RewriteValve (it was for the 8.0.15), The goal of that patch is to block the RewriteValve if a 302 automatic folder '/' redirection occurs. The RewriteValve will rewrite the

Re: Buffer failure in AjpNio connector?

2015-02-25 Thread Rémy Maucherat
2015-02-25 15:10 GMT+01:00 Christopher Schultz ch...@christopherschultz.net : SEVERE: Exception while dispatching incoming RPC call java.lang.IllegalArgumentException at java.nio.Buffer.limit(Buffer.java:275) at

Re: Buffer failure in AjpNio connector?

2015-02-25 Thread Rémy Maucherat
2015-02-25 17:17 GMT+01:00 Christopher Schultz ch...@christopherschultz.net : This configuration seems to solve the issue: Connector port=@connector-port@ redirectPort=443 protocol=org.apache.coyote.ajp.AjpNioProtocol URIEncoding=UTF-8

Re: org.apache.catalina.connector.CoyoteAdapter.checkRecycled Encountered a non-recycled request and recycled it forcedly

2015-05-26 Thread Rémy Maucherat
2015-05-26 14:32 GMT+02:00 Konstantin Kolinko knst.koli...@gmail.com: The forced recycling message is not a problem per se, but an indicator of a problem. In the same way as or even on one virtual host appeared a page from another virtual host that you. It signals that a request/response

Re: NIO2 SSL Handshake usage

2015-09-28 Thread Rémy Maucherat
2015-09-28 12:17 GMT+02:00 kamalakannan chandrakumar < chandrakumarkamalakan...@gmail.com>: > Hi, > > > > > Please let me why there is no way to set Handler class or Future task is > > not returned for > > SSL handshake in SecureNIO2Channel. How to use those classes for writing > > client code ?

Re: Websocket client creates two threads per SSL client connection - intended or accidental?

2015-12-17 Thread Rémy Maucherat
2015-12-17 17:25 GMT+01:00 Barry Coughlan : > Each AsyncChannelWrapperSecure creates two threads, and > WsWebSocketContainer creates an AsyncChannelWrapperSecure for each secure > connection. > > Is this behaviour intended or is this a bug? > > I initially posted this as a

Re: Tomcat9 Removal of support for Comet

2016-01-06 Thread Rémy Maucherat
2016-01-06 18:11 GMT+01:00 Ikenna Darlington : > Hello Devs, > > My team currently uses tomcat8 to serve our Scala application developed > using lift. Our application uses comet to send real time data from the > server to the client. > > Unfortunately we noticed that in

Re: TLS certificate configuration in Tomcat 9

2015-11-25 Thread Rémy Maucherat
2015-11-25 16:26 GMT+01:00 Christopher Schultz : > All, > > Is the PEM-based certificate configuration available for both JSSE-based > and APR-based connectors in Tomcat 9 at this point? The documentation > says e.g. the "certificateFile" attribute is for "OpenSSL

Re: Today's Tomcat 9 HTTP/2 webinar is now available on YouTube

2015-11-25 Thread Rémy Maucherat
2015-11-25 12:06 GMT+01:00 Johan Compagner : > thx, > > one question i have, is server push always code? > because for me it is > if this js file is hit (served by the default servlet of tomcat i guess). > also send in this set.. > > So its kind of a configuration, or

Re: Http2UpgradeHandler error

2016-06-21 Thread Rémy Maucherat
2016-06-21 13:31 GMT+02:00 Andrei Ivanov : > Hello, > Trying to upgrade from 8.0.35 to 8.5.3 (on Win 7 and JDK > 1.8.0_92-b14), I ran into this error, using Firefox 47: > > Try not using the APR connector, for starters, your platform isn't the best for it IMO. Rémy

Re: [PossibleSpam] Re: Tomcat Rewrite Valve

2016-02-10 Thread Rémy Maucherat
2016-02-10 15:06 GMT+01:00 Joe Aldrich : > > >Am 29.01.2016 15:34, schrieb Joe Aldrich: > >> Hello, > >> > >> I am using Tomcat 8.0.28 on Windows 10 and am having a problem with > >> the Rewrite Value. I must include the escaped form of an ampersand > >> '%26' in the

  1   2   3   4   >