Skip to content
Snippets Groups Projects
  • Maksim Kaitmazian's avatar
    d2031e75
    fix: perform read only if ibuff is empty · d2031e75
    Maksim Kaitmazian authored and Maksim Kaitmazian's avatar Maksim Kaitmazian committed
    If ibuff is not empty we should read messages from the buffer.
    Reading messages when the buffer is not empty may lead to deadlock,
    for instance, if the frontend send a series of queries and waits backend
    response to send other messages, while backend tries to read new
    messages.
    d2031e75
    History
    fix: perform read only if ibuff is empty
    Maksim Kaitmazian authored and Maksim Kaitmazian's avatar Maksim Kaitmazian committed
    If ibuff is not empty we should read messages from the buffer.
    Reading messages when the buffer is not empty may lead to deadlock,
    for instance, if the frontend send a series of queries and waits backend
    response to send other messages, while backend tries to read new
    messages.