[CONJ-440] handle very big COM_STMT_SEND_LONG_DATA packet. Created: 2017-03-06  Updated: 2017-03-08  Resolved: 2017-03-07

Status: Closed
Project: MariaDB Connector/J
Component/s: Other
Affects Version/s: None
Fix Version/s: 1.5.9

Type: Task Priority: Major
Reporter: Diego Dupin Assignee: Diego Dupin
Resolution: Fixed Votes: 0
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.


Generated at Thu Feb 08 03:15:41 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.