Re: AsyncHttpClient with no content-length header

2007-12-05 Thread Vishal_Jain
something) vishal Vishal_Jain wrote: Should we modify the org.apache.mina.filter.codec.http.HttpResponseDecodingState line 215 from nextState = null to nextState = new ConsumeToCrLfDecodingState(){ @Override protected DecodingState finishDecode

Re: AsyncHttpClient with no content-length header

2007-12-05 Thread Vishal_Jain
as a possible buffer/memory problem (it would then be easy to crash a Mina client). Anyone have an opinion on this? Jeff Vishal_Jain wrote: Is there a JIRA id for this issue ? or any workarounds ? vishal berdim99 wrote: Hi. It seems that AsyncHttpClient fails to decode a web

Re: Managing large number of Connectors

2007-12-05 Thread Vishal_Jain
to put up with silly questions :) appreciate your patience. vishal Trustin Lee wrote: Hi Vishal, On Dec 4, 2007 7:02 PM, Vishal_Jain [EMAIL PROTECTED] wrote: Hi All, Am having a bit of confusion and appreciate any help from the community. i want to manage a large number of connectors

Managing large number of Connectors

2007-12-04 Thread Vishal_Jain
Hi All, Am having a bit of confusion and appreciate any help from the community. i want to manage a large number of connectors (which would connect to different web servers). Am experimenting with Mina 2 and use the AsyncHttpClient like code. Would we benefit in terms of performance/latency if

Re: AsyncHttpClient with no content-length header

2007-12-04 Thread Vishal_Jain
Is there a JIRA id for this issue ? or any workarounds ? vishal berdim99 wrote: Hi. It seems that AsyncHttpClient fails to decode a web page in which the web-server doesn't send a content-length header. What happens is that the callback is called with a null content, after which the

Re: AsyncHttpClient with no content-length header

2007-12-04 Thread Vishal_Jain
with good understanding of the code can fix it better. vishal Vishal_Jain wrote: Is there a JIRA id for this issue ? or any workarounds ? vishal berdim99 wrote: Hi. It seems that AsyncHttpClient fails to decode a web page in which the web-server doesn't send a content-length header

Running Wget results in IOException

2007-12-03 Thread Vishal_Jain
Hi All, I tried to run the Wget program as is (just hardcoded the url as http://www.google.com) and i ended up in: Exception in thread main java.lang.Exception: java.io.IOException: An existing connection was forcibly closed by the remote host Caused by: java.io.IOException: An existing

Re: Running Wget results in IOException

2007-12-03 Thread Vishal_Jain
Realized what was going wrong. I wasn't setting couple of headers explicitly (such as Host, Accept etc. ) it works fine :) thanks. Vishal_Jain wrote: Hi All, I tried to run the Wget program as is (just hardcoded the url as http://www.google.com) and i ended up in: Exception in thread

Re: Problems handling multiple messages in HttpRequestDecoder

2007-11-30 Thread Vishal_Jain
I see the same issue with the latest revision. It did pass once but got stuck at: Tests in error: testConnectFutureSuccessTiming(org.apache.mina.transport.socket.nio.SocketConnectorTest) The next time i tried clean and install, it just stopped there. :| is there anything am missing ?

Re: Problems handling multiple messages in HttpRequestDecoder

2007-11-30 Thread Vishal_Jain
I see the same issue with revision 599747 :| vishal parki wrote: HI Trustin: Quick update - I just updated (version 597782), did a 'mvn clean' and then 'mvn install' and it hangs on: --- T E S T S

Proxy design query

2007-11-12 Thread Vishal_Jain
Hi All, Am implementing a proxy like system that has 2 connectors (taking on one end and transferring onto the other). what i basically do in the MessageReceived routine of connector1 is call the IoSession.write of connector2 and that in turn invokes the ProtocolDecoder (yes am using a Protocol

Re: Proxy design query

2007-11-12 Thread Vishal_Jain
need a queue. On Nov 12, 2007 11:23 PM, Vishal_Jain [EMAIL PROTECTED] wrote: Yes i did take a look at the proxy example and what i implemented is also similar to that. I have the following understanding of how Mina handles the request, please correct me if am wrong. The execution

Re: Client Connection Pool support

2007-11-06 Thread Vishal_Jain
they are useful is when you want to limit the number of connections to the server from a multi threaded client. This is often to conserve resources/limit load on the server. Cheers, Brad. Vishal_Jain wrote: Thanks Trustin ! The server i have at my disposal is within the LAN (same subnet

Re: Client Connection Pool support

2007-11-05 Thread Vishal_Jain
and do a message exchange compared to creating and connecting a socket as and when required ? vishal Trustin Lee wrote: On 11/5/07, Vishal_Jain [EMAIL PROTECTED] wrote: Is there a way this can be implemented with existing features till we wait for version 2.0 ? MINA is nothing

Re: Client Connection Pool support

2007-11-05 Thread Vishal_Jain
) and send/receive requests (socket would close after every transaction); my aim is to keep the system decently scalable with heavy loads (am not sure about how heavy it could get yet). - vishal Trustin Lee wrote: On 11/6/07, Vishal_Jain [EMAIL PROTECTED] wrote: Thats right. I was wondering

Re: Client Connection Pool support

2007-11-05 Thread Vishal_Jain
/6/07, Vishal_Jain [EMAIL PROTECTED] wrote: Thanks Trustin ! The server i have at my disposal is within the LAN (same subnet) and the connection time i have noticed is about 50ms. My dilemma is to whether accept 50ms as acceptable/reasonable or try something to further reduce this. Purpose

Re: Client Connection Pool support

2007-11-04 Thread Vishal_Jain
Is there a way this can be implemented with existing features till we wait for version 2.0 ? vishal Trustin Lee wrote: On 10/31/07, liquidchen [EMAIL PROTECTED] wrote: Hi, does mina Connector provide any function can do like sokcet connection pool?? Thanks... Not yet. It should be

howto make CumulativeProtocolDecoder re-entrant

2007-11-01 Thread Vishal_Jain
Hi All, I noticed that when i have data coming into the decoder as chunks at a fast rate i.e. before the processing for the first chunk has been completed, it leads to undesirable results. Since, i don't get time to rewind the buffer and thus the first buffer is lost. (exception from this is a