directory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Trustin Lee <>
Subject Re: [mina] Traffic control implementation
Date Wed, 02 Nov 2005 02:31:21 GMT
Hi Niklas,

I looked into your patch, but I found a problem that it doesn't throttle
write requests. I guess we shouldn't call flush(SocketSessionImpl) if the
mark doesn't contain OP_WRITE. WDYT?


2005/11/1, Niklas Therning <>:
> Hi,
> I have attached a diff against the current trunk which contains my shot
> at implementing traffic control. I have concentrated on TCP connections
> so the suspend/resume/Read/Write methods have been added to
> SocketSession for now. Please let me know what you think of the code and
> if you have any idea on how to test this. I have tested
> suspending/resuming read operations in our application and it seems to
> be working just fine. But I would really like to write a TestCase
> testing suspending/resuming reads and writes.
> /Niklas

what we call human nature is actually human habit

View raw message