mina-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hanson Char" <hanson.c...@gmail.com>
Subject Controlling rate of writes in Mina 0.8.2
Date Wed, 13 Sep 2006 04:02:13 GMT

A quick question.  Is there an easy way in Mina 0.8.2 to control the rate of
physical network write operations to not exceeding a specific number of
messages ?

For example, can I say for a particular socket connection session Mina
should write physically no more than 3 messages per second ?  Message here
means the argument that get passed to session.write(Object).

AFAIK the session.write() is a logical asyn operation, and Mina therefore
reserves the right to buffer it underneath.  If so, controlling the rate of
session.write() cannot be relied upon to control the rate of physical
messages that get sent down the wire.

Or am I mistaken ?


  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message