You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by Mladen Turk <mt...@mappingsoft.com> on 2002/11/20 13:18:56 UTC

[JK2] jni channel doesn't send POST data (WAS: [JK2] Apache2 add read-ahead for POST data)

Hi,

Apache isn't the bugger here. The jni itself is unable to process the
POST data.
The channel_jni is invoked for the getChunk (id 6), but then nothing
happens (at least I wasn't been able to trace any jni_send).
It invokes the response dispatcher, but then nothing happens. (Think
that this message should be written back as requested) like for stream
channels in the processCallbacks.

Now I can check for JK_HANDLER_RESPONSE after calling dispatch and write
the post data, but that doesn't help. The message is formatted
correctly, but seems like Java part disregards that.

Am I missing something here? Costin?

MT.



--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: [JK2] jni channel doesn't send POST data (WAS: [JK2] Apache2 add read-ahead for POST data)

Posted by jean-frederic clere <jf...@fujitsu-siemens.com>.
Mladen Turk wrote:
> 
>>-----Original Message-----
>>From: Costin Manolache
>>
>>It's most likely a bug. I know Nacho is using JNI with IIS - and the 
>>code looks fine.
>>
> 
> 
> Yeah, it was... Just fixed it in the cvs. We were sending reply msg and
> the handler was feeding post msg.

Oops I fill a bit guilty for this one ;-(

> Looks fine now (tested with 100K POST data) using either JNI or socket.
> 
> MT.
> 
> 
> 
> --
> To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
> For additional commands, e-mail: <ma...@jakarta.apache.org>
> 
> 




--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


RE: [JK2] jni channel doesn't send POST data (WAS: [JK2] Apache2 add read-ahead for POST data)

Posted by Mladen Turk <mt...@mappingsoft.com>.

> -----Original Message-----
> From: Costin Manolache
> 
> It's most likely a bug. I know Nacho is using JNI with IIS - and the 
> code looks fine.
> 

Yeah, it was... Just fixed it in the cvs. We were sending reply msg and
the handler was feeding post msg.
Looks fine now (tested with 100K POST data) using either JNI or socket.

MT.



--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: [JK2] jni channel doesn't send POST data (WAS: [JK2] Apache2 add read-ahead for POST data)

Posted by Costin Manolache <cm...@yahoo.com>.
Mladen Turk wrote:

> Hi,
> 
> Apache isn't the bugger here. The jni itself is unable to process the
> POST data.
> The channel_jni is invoked for the getChunk (id 6), but then nothing
> happens (at least I wasn't been able to trace any jni_send).
> It invokes the response dispatcher, but then nothing happens. (Think
> that this message should be written back as requested) like for stream
> channels in the processCallbacks.
> 
> Now I can check for JK_HANDLER_RESPONSE after calling dispatch and write
> the post data, but that doesn't help. The message is formatted
> correctly, but seems like Java part disregards that.
> 
> Am I missing something here? Costin?

It's most likely a bug. I know Nacho is using JNI with IIS - and the 
code looks fine.

This week I'll not be able to help too much, I am far too busy,
but I'll try finding some time during the weekend. 

Costin 

> 
> MT.




--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>