Uploaded image for project: 'JGroups'
  1. JGroups
  2. JGRP-2565

TcpConnection.send() locks unnecessarily

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Won't Do
    • Icon: Major Major
    • 5.1.9
    • None
    • None
    • False
    • False
    • Undefined

      TcpConnection wraps the socket's SocketOutputStream with a BufferedOutputStream, which protects writes / flushes with a lock. The send_lock on TcpConnection.send() is therefore redundant, and causes unneeded locking.
      Solution: don't use send_lock on a write().

              rhn-engineering-bban Bela Ban
              rhn-engineering-bban Bela Ban
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: