Uploaded image for project: 'MariaDB Connector/J'
  1. MariaDB Connector/J
  2. CONJ-440

handle very big COM_STMT_SEND_LONG_DATA packet.

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.5.9
    • Component/s: Other
    • Labels:
      None

      Description

      Actual binary data are send using COM_STMT_SEND_LONG_DATA when using server prepare.

      Actual implementation has 2 issues :

      • Stream data are stored in an internal buffer, not send directly to socket.
      • There is no max_allowed_packet size check to return a good client error. (COM_STMT_RESET must be called prior to throwing exception)

      This cause unneeded use of memory, leading to OOM error, if stream size is really important.

        Attachments

          Activity

            People

            Assignee:
            diego dupin Diego Dupin
            Reporter:
            diego dupin Diego Dupin
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Git Integration