DatagramPacket buffer reuse

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Not an Issue
    • Priority: P4
    • None
    • Affects Version/s: 1.1
    • Component/s: core-libs
    • None
    • x86
    • windows_95



      Name: mc57594 Date: 01/29/97


      I have observed that due to an internal length field in Datagram
      Packet, it is not wise to try to reuse DatagramPackets. For instance,
      if I recieve a DatagramPacket and the data contained in the byte
      array is 100 bytes (assume the actual buffer is arbitrarily larger)
      and then reuse the DatagramPacket to recieve a packet that might
      really be larger than 100 bytes. I will only see 100 bytes of the
      packet that actually was much larger.
      ======================================================================

            Assignee:
            Benjamin Renaud (Inactive)
            Reporter:
            Mark Chamness (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: