setIdleTime() problem in 1.1.5?

2008-01-29 Thread Niklas Therning
Hi, We recently upgraded from MINA 1.0 to 1.1.5 and we seem to have problems with IoSession.setIdleTime(). In sessionCreated() we set it like this: session.setIdleTime(IdleStatus.BOTH_IDLE, 3600); Yet some sessions seem to get a sessionIdle() callback within only a few seconds/minutes

Re: AsyncHttpClient, Connector, disposing and parked threads

2008-01-29 Thread Julien Vermillard
On Mon, 28 Jan 2008 12:29:56 -0500 Alex Karasulu [EMAIL PROTECTED] wrote: Hi Julien, Thanks for the update to the mailing list. On Jan 28, 2008 12:25 PM, Julien Vermillard [EMAIL PROTECTED] wrote: Hi, Following an IRC convo, between alex, tazle and me : We had a few complaint

RE: AsyncHttpClient, Connector, disposing and parked threads

2008-01-29 Thread Irving, Dave
Julien Vermillard wrote: Another issues with AHC is the way you recieve the result of your connection in a big IoBuffer, it should be nice to be able to receive big results like files or http streaming in chunks and no a big memory buffer. Something I always wanted to find time to get round

[jira] Work stopped: (DIRMINA-513) get rid of IoSessionLogger

2008-01-29 Thread Maarten Bosteels (JIRA)
[ https://issues.apache.org/jira/browse/DIRMINA-513?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Work on DIRMINA-513 stopped by Maarten Bosteels. get rid of IoSessionLogger --- Key: DIRMINA-513 URL:

[jira] Commented: (DIRMINA-513) get rid of IoSessionLogger

2008-01-29 Thread Maarten Bosteels (JIRA)
[ https://issues.apache.org/jira/browse/DIRMINA-513?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=12563432#action_12563432 ] Maarten Bosteels commented on DIRMINA-513: -- IoSessionLogger has been removed, but

Re: AsyncHttpClient, Connector, disposing and parked threads

2008-01-29 Thread Julien Vermillard
On Tue, 29 Jan 2008 08:39:14 + Irving, Dave [EMAIL PROTECTED] wrote: Julien Vermillard wrote: Another issues with AHC is the way you recieve the result of your connection in a big IoBuffer, it should be nice to be able to receive big results like files or http streaming in chunks

Re: Cast Problem in Handler

2008-01-29 Thread Julien Vermillard
Hi, MINA provide you by default buffer of bytes and not Strings, you shoudl take a look at this example : http://svn.apache.org/viewvc/mina/branches/1.0/example/src/main/java/org/apache/mina/example/reverser/ And specificly to this code : SocketAcceptorConfig cfg = new

Cast Problem in Handler

2008-01-29 Thread Brenno Hayden
Hi, I have one problem. When I do a cast in the code below Public class MyHanlder extends IoHandlerAdapter { public void messageReceived(IoSession session, Object message) { String s = (String)message; Has the following problem org.apache.mina.util.SessionLog warn WARNING: [/127.0.0.1:3696]

Re: AsyncHttpClient, Connector, disposing and parked threads

2008-01-29 Thread Timothy Bennett
On Jan 29, 2008 2:39 AM, Irving, Dave [EMAIL PROTECTED] wrote: Something I always wanted to find time to get round to in AsyncWeb :o) Not sure how applicable this will be to the current code base, but some of my initial thoughts on this from way back in the day can be found here:

translate the Mina framework to IL to use with C# on Mono .Net

2008-01-29 Thread Robert Johnson
Hi, I would like to translate the Mina framework to IL to use with C# on Mono .Net. Would this be of interest to the Mina community? - Robert

Re: Cast Problem in Handler

2008-01-29 Thread Brenno Hayden
Hi Julien, Thank you, helped a lot! The source-code is fine, now. thanks On Jan 29, 2008 1:20 PM, Julien Vermillard [EMAIL PROTECTED] wrote: Hi, MINA provide you by default buffer of bytes and not Strings, you shoudl take a look at this example :

Re: AsyncHttpClient, Connector, disposing and parked threads

2008-01-29 Thread Alex Karasulu
Yeah we need to get them transfered over. I'll figure out how we can do that. I also need to get some confluence things taken care of as well so we can start collaborating and transfer the site over. All on my TODO list. If others want to help out in this process please let me know I'm

Re: Getting UDP packet source

2008-01-29 Thread Brenno Hayden
Hi, keep on code @Override public void messageReceived(IoSession session, Object message) { TransportType transportType = session.getTransportType(); InetSocketAddress address = (InetSocketAddress)session.getLocalAddress(); System.out.println(address.getAddress());

Re: [OT] was: AsyncHttpClient, Connector, disposing and parked threads

2008-01-29 Thread Timothy Bennett
On Jan 29, 2008 2:18 AM, Irving, Dave [EMAIL PROTECTED] wrote: Hey - absolutely great to see AsyncWeb alive and kicking!! Hopefully I'll have enough time to start getting properly involved again later in the year! Kindest regards to all, Good to see you, Dave! Glad you are at least

Re: translate the Mina framework to IL to use with C# on Mono .Net

2008-01-29 Thread Kevin Williams
I could use that. As a matter of fact, I toyed with the idea of doing it myself, but don't have time. On Jan 29, 2008 10:02 AM, Robert Johnson [EMAIL PROTECTED] wrote: Hi, I would like to translate the Mina framework to IL to use with C# on Mono .Net. Would this be of interest to the Mina

[jira] Created: (DIRMINA-523) Default thread model should be created laziliy

2008-01-29 Thread Kristjan Habicht (JIRA)
Default thread model should be created laziliy -- Key: DIRMINA-523 URL: https://issues.apache.org/jira/browse/DIRMINA-523 Project: MINA Issue Type: Improvement Components: Core

Re: [Asyncweb] New confluence space requested.

2008-01-29 Thread Alex Karasulu
Hey guys I might have missed a few people so please add your name to the JIRA issue as comments. I realized Jullien and Mike were not on there. Didn't know if you wanted to be. Alex On Jan 29, 2008 2:57 PM, Alex Karasulu [EMAIL PROTECTED] wrote: Just an FYI,

[Asyncweb] New confluence space requested.

2008-01-29 Thread Alex Karasulu
Just an FYI, https://issues.apache.org/jira/browse/INFRA-1502 Will notify when this space has been created. Thanks, Alex

Re: AsyncHttpClient, Connector, disposing and parked threads

2008-01-29 Thread Timothy Bennett
On Jan 29, 2008 12:05 PM, Alex Karasulu [EMAIL PROTECTED] wrote: Yeah we need to get them transfered over. I'll figure out how we can do that. I also need to get some confluence things taken care of as well so we can start collaborating and transfer the site over. All on my TODO list. If

Re: setIdleTime() problem in 1.1.5?

2008-01-29 Thread Niklas Therning
Niklas Therning wrote: Hi, We recently upgraded from MINA 1.0 to 1.1.5 and we seem to have problems with IoSession.setIdleTime(). In sessionCreated() we set it like this: session.setIdleTime(IdleStatus.BOTH_IDLE, 3600); Yet some sessions seem to get a sessionIdle() callback within only a

[AsyncHttpClient] On bringing the code bases and communities together

2008-01-29 Thread Alex Karasulu
Hi, Please excuse the cross post but it's quite necessary. Furthermore people should not feel like they cannot cross post responses so please feel free. It looks like the two versions of the http client based on MINA are starting to diverge. I've noticed the other day that some of the fixes for

Re: [AsyncWeb] Client redesign

2008-01-29 Thread David M. Lloyd
Mike Heath wrote: [...] This topic came up on the IRC channel and David Lloyd (dmlloyd), Tuure Laurinolli (tazle), and I (mike_heath) were discussing better alternatives to the current design. The following is a summary of our conversation. And while Mike was typing up this excellent summary,

Re: [AsyncWeb] Client redesign

2008-01-29 Thread Alex Karasulu
Hi guys, I'm fine with anything y'all select for the name. I'm much more interested in figuring out how to get some of these resource issues settled and the two forks of this merged together so we have more people working together on this. Please see my thread on how to bring the Geronimo folks

Re: Configuring UDP application for performance

2008-01-29 Thread Mark
The Configuring Thread Model page should also apply for UDP-based systems. Just make sure you are not using an ExecutorFilter and you can pass in an Executor that only uses one thread. On Jan 29, 2008 5:14 PM, Yang Zhang [EMAIL PROTECTED] wrote: I was profiling my MINA-based application

Re: [AsyncHttpClient] On bringing the code bases and communities together

2008-01-29 Thread Mike Heath
Alex Karasulu wrote: Hi, Please excuse the cross post but it's quite necessary. Furthermore people should not feel like they cannot cross post responses so please feel free. It looks like the two versions of the http client based on MINA are starting to diverge. I've noticed the other

Re: AsyncHttpClient, Connector, disposing and parked threads

2008-01-29 Thread Jeff Genender
Yes...that problem was fixed as well as a host of others. Jeff Alex Karasulu wrote: Someone from Geronimo mentioned that this problem was actually fixed in the Geronimo version a while back. Perhaps something we should look into or inquire about. Jeff can you give us an update on that? Alex

Re: AsyncHttpClient, Connector, disposing and parked threads

2008-01-29 Thread Tuure Laurinolli
The current Geronimo AHC doesn't seem to have much in common with the current MINA AHC, and seems clearly superior to it in functionality and robustness. However, it also seems to have radically different API, including seemingly totally different underlying HTTP codec. It also doesn't seem

Re: [AsyncWeb] Client redesign

2008-01-29 Thread Tuure Laurinolli
David M. Lloyd wrote: So basically there's been a number of suggestions as to what to name these things. Here are the two options: Name from pastebin Option 1 Option 2 - -- AsyncHttpClient

[jira] Updated: (ASYNCWEB-1) AsyncHttpClient does not dispose its NioSocketConnector

2008-01-29 Thread Tuure Laurinolli (JIRA)
[ https://issues.apache.org/jira/browse/ASYNCWEB-1?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Tuure Laurinolli updated ASYNCWEB-1: Attachment: fix-deadlock.patch Reverts deadlock-inuding change. AsyncHttpClient does not

[jira] Updated: (ASYNCWEB-1) AsyncHttpClient does not dispose its NioSocketConnector

2008-01-29 Thread Tuure Laurinolli (JIRA)
[ https://issues.apache.org/jira/browse/ASYNCWEB-1?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Tuure Laurinolli updated ASYNCWEB-1: Attachment: add-dispose-method.patch Adds dispose() method to allow working around

[jira] Created: (ASYNCWEB-1) AsyncHttpClient does not dispose its NioSocketConnector

2008-01-29 Thread Tuure Laurinolli (JIRA)
AsyncHttpClient does not dispose its NioSocketConnector --- Key: ASYNCWEB-1 URL: https://issues.apache.org/jira/browse/ASYNCWEB-1 Project: Asyncweb Issue Type: Bug Reporter:

Re: Configuring UDP application for performance

2008-01-29 Thread Yang Zhang
Mark wrote: The Configuring Thread Model page should also apply for UDP-based systems. Just make sure you are not using an ExecutorFilter and you can pass in an Executor that only uses one thread. Hi, Mark, I suppose I should have been more clear on the questions I still had after reading

Re: [AsyncHttpClient] On bringing the code bases and communities together

2008-01-29 Thread Kevan Miller
On Jan 29, 2008, at 7:28 PM, Mike Heath wrote: Alex Karasulu wrote: Hi, Please excuse the cross post but it's quite necessary. Furthermore people should not feel like they cannot cross post responses so please feel free. It looks like the two versions of the http client based on MINA

Re: [AsyncHttpClient] On bringing the code bases and communities together

2008-01-29 Thread Alex Karasulu
Kevan, Thanks for taking the time to respond. More inline ... On Jan 30, 2008 1:08 AM, Kevan Miller [EMAIL PROTECTED] wrote: ... So, as we discussed the last time, the community members that have been active in this area are Jeff Genender, Sangjin Lee, and Rick McGuire. You already know

Re: [AsyncHttpClient] On bringing the code bases and communities together

2008-01-29 Thread Trustin Lee
On Jan 30, 2008 3:44 PM, Alex Karasulu [EMAIL PROTECTED] wrote: Kevan, Thanks for taking the time to respond. More inline ... On Jan 30, 2008 1:08 AM, Kevan Miller [EMAIL PROTECTED] wrote: ... So, as we discussed the last time, the community members that have been active in this area

Re: [Asyncweb] New confluence space requested.

2008-01-29 Thread Trustin Lee
BTW, does this mean that we should revive CWiki space for FtpServer? Niklas G already moved all pages to MINA space. I hope it's easy to move the pages back and set up subproject web sites. Trustin On Jan 30, 2008 5:18 AM, Alex Karasulu [EMAIL PROTECTED] wrote: Hey guys I might have missed a

Re: [Asyncweb] New confluence space requested.

2008-01-29 Thread Alex Karasulu
On Jan 30, 2008 2:10 AM, Trustin Lee [EMAIL PROTECTED] wrote: BTW, does this mean that we should revive CWiki space for FtpServer? Niklas G already moved all pages to MINA space. I hope it's easy to move the pages back and set up subproject web sites. We can sure if that's what they want to

Re: ExecutorFilter

2008-01-29 Thread Steve Johns
Is that true? I used that all the time. Which means: If I use 2 io processor threads + an ExecutorFilter at the end of IoFilter which ends up with single thread to process the business logic? On Jan 29, 2008 1:35 AM, Martin Alderson [EMAIL PROTECTED] wrote: Hi all, I've just spent a while