ladybird/Userland/Services/SQLServer
Timothy Flynn 1205d39fc3 LibSQL+SQLServer: Inform SQLServer when the client has processed results
The architecture of SQLServer is currently such that it sends results
over IPC one row at a time. After the rows are exhausted, it sends a
completion IPC. However, it does not wait for the client to finish
processing a row before sending another row or the completion signal.

This can result in clients hanging if the completion comes in while a
row is being processed. At least in the case of WebView::Database, the
result is that the completion signal is dropped, and the browser then
hangs forever waiting for that signal (after it finishes processing the
row).

This patch makes SQLServer asynchronously wait for the client to tell it
that the row has been processed and the next row (or completion) may be
sent. We repurpose the `m_ongoing_executions` in SQLStatement for this
purpose (this member was oddly being written to, but otherwise unused).
2024-01-10 23:26:40 +01:00
..
CMakeLists.txt Everywhere: Mark dependencies of most targets as PRIVATE 2022-11-01 14:49:09 +00:00
ConnectionFromClient.cpp LibSQL+SQLServer: Inform SQLServer when the client has processed results 2024-01-10 23:26:40 +01:00
ConnectionFromClient.h LibSQL+SQLServer: Inform SQLServer when the client has processed results 2024-01-10 23:26:40 +01:00
DatabaseConnection.cpp Everywhere: Rename {Deprecated => Byte}String 2023-12-17 18:25:10 +03:30
DatabaseConnection.h Everywhere: Rename {Deprecated => Byte}String 2023-12-17 18:25:10 +03:30
Forward.h Userland: Rename IPC ClientConnection => ConnectionFromClient 2022-02-25 22:35:12 +01:00
main.cpp Everywhere: Rename {Deprecated => Byte}String 2023-12-17 18:25:10 +03:30
SQLClient.ipc Everywhere: Rename {Deprecated => Byte}String 2023-12-17 18:25:10 +03:30
SQLServer.ipc LibSQL+SQLServer: Inform SQLServer when the client has processed results 2024-01-10 23:26:40 +01:00
SQLStatement.cpp LibSQL+SQLServer: Inform SQLServer when the client has processed results 2024-01-10 23:26:40 +01:00
SQLStatement.h LibSQL+SQLServer: Inform SQLServer when the client has processed results 2024-01-10 23:26:40 +01:00