[JDEV] out of karma!!!

Igor Borisovsky igor at datanaut.sci-nnov.ru
Wed Jan 24 11:25:26 CST 2001


Hi!
I see "socket #11 out of karma" message from Jabber server. What is it?
This is a my jabber.xml file:
----------------------------------------------------
<jabber>
  <!-- This section is for the session manager, the most important component
within the server. -->
  <service id="sessions">
    <host>datanaut.sci-nnov.ru</host>
    <host><jabberd:cmdline flag="h"/></host>

    <!-- This is the custom configuration section for the session
manager. -->
    <jsm xmlns="jabber:config:jsm">

      <register>
        <instructions>Choose a username and password to register with this
server.</instructions>
        <name/><email/>
      </register>

      <agents>

        <!-- This is the default agent for the master jabber user directory,
this section can be duplicated for additional user custom/company
directories. -->
        <agent jid="datanaut.sci-nnov.ru">
          <name>Jabber User Directory</name>
          <description>You may register and create a public searchable
profile, and search for other registered Jabber users.</description>
          <service>jud</service>
          <register/>
          <search/>
        </agent>

        <agent jid="conference.datanaut.ru">
          <name>Group Conferencing</name>
          <description>You can create and participate in private
chatrooms.</description>
          <service>conferencing</service>
          <groupchat/>
          <register/>
        </agent>

      </agents>

      <!-- Session log file -->
      <log>
        <file>session.log</file>
        <type>session</type>
      </log>

      <!-- Server version update notification, set to the server name so
that all administrators (above) will be notified, or set to any ID -->
      <update><jabberd:cmdline flag="h"/></update>

    </jsm>

    <!-- This section dynamically loads the session manager, remove or
comment out modules to disable them. -->
    <load main="jsm">
      <jsm>./jsm.so</jsm>
      <mod_echo>./jsm.so</mod_echo>
      <mod_roster>./jsm.so</mod_roster>
      <mod_time>./jsm.so</mod_time>
      <mod_vcard>./jsm.so</mod_vcard>
      <mod_version>./jsm.so</mod_version>
      <mod_announce>./jsm.so</mod_announce>
      <mod_agents>./jsm.so</mod_agents>
      <mod_admin>./jsm.so</mod_admin>
      <mod_private>./jsm.so</mod_private>
      <mod_filter>./jsm.so</mod_filter>
      <mod_presence>./jsm.so</mod_presence>
      <mod_auth_plain>./jsm.so</mod_auth_plain>
      <mod_auth_digest>./jsm.so</mod_auth_digest>
      <mod_auth_0k>./jsm.so</mod_auth_0k>
      <mod_register>./jsm.so</mod_register>
      <mod_log>./jsm.so</mod_log>
    </load>

  </service>


  <!-- This component handles all data storage, using the filesystem. -->
  <xdb id="xdb">
    <host/>
    <load><xdb_file>./xdb_file.so</xdb_file></load>
    <xdb_file
xmlns="jabber:config:xdb_file"><spool>./spool</spool></xdb_file>
  </xdb>


  <!-- Service to manage incoming client socket connections. -->
  <service id="c2s">
    <load><pthsock_client>./pthsock_client.so</pthsock_client></load>
    <pthcsock xmlns='jabber:config:pth-csock'>
      <authtime/> <!-- unlimited time to auth, could be
<authtime>10</authtime> for 10 seconds, etc -->
      <rate time="5" points="25"/> <!-- 25 connects in 5 seconds limit (per
IP) -->
      <!-- Karma based I/O rate limits, per connection, see
http://docs.jabber.org/ for more info. -->
      <karma>
        <max>10</max>
        <inc>1</inc>
        <dec>1</dec>
        <restore>5</restore>
        <penalty>-5</penalty>
      </karma>
      <!-- Use these to listen on particular addresses and/or ports.
      <ip port="5223"/>
      <ip port="5222">127.0.0.1</ip>
      -->
    </pthcsock>
  </service>
  <!-- Default server logging component, copies to a file and STDERR. -->
  <log id='logger'>
    <host/>
    <format>%d: [%t] (%h): %s</format>
    <file>error.log</file>
    <stderr/>
  </log>

  <!-- External asychronous DNS resolver -->
  <service id="dnsrv">
    <host/>
    <load><dnsrv>./dnsrv.so</dnsrv></load>
    <dnsrv xmlns="jabber:config:dnsrv">
     <resend service="_jabber._tcp">s2s</resend> <!-- for supporting SRV
records -->
     <resend>s2s</resend>
    </dnsrv>
  </service>

  <!-- Handles server connections and dialback hostname verification -->
  <service id="s2s">
    <load><pthsock_server>./pthsock_server.so</pthsock_server></load>
    <pthssock xmlns='jabber:config:pth-ssock'>
      <legacy/> <!-- allow communication with old 1.0-style servers -->
      <rate time="5" points="25"/> <!-- 25 connects in 5 seconds limit (per
IP) -->
      <!-- Karma based I/O rate limits, per connection, set a little higher
for server connections -->
      <karma>
        <max>30</max>
        <inc>2</inc>
        <dec>1</dec>
        <restore>15</restore>
        <penalty>-1</penalty>
      </karma>
      <!-- Use these to listen on particular addresses and/or ports.
      <ip port="7000"/>
      <ip port="5269">127.0.0.1</ip>
      -->
    </pthssock>
  </service>
   <service id="groupchat-transport">
     <exec>/usr/local/jabber/jabberd -c
/usr/local/jabber/jabberd_groupchat.xml</exec>
     <host>conference.datanaut.ru</host>
   </service>

</jabber>
----------------------------------------------------
What's wrong?

---------------------------
Igor Borisovsky
Nizhny Novgorod
DataNaut Inc.






More information about the JDev mailing list