mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 15:40:19 +00:00
1205d39fc3
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). |
||
---|---|---|
.. | ||
CMakeLists.txt | ||
ConnectionFromClient.cpp | ||
ConnectionFromClient.h | ||
DatabaseConnection.cpp | ||
DatabaseConnection.h | ||
Forward.h | ||
main.cpp | ||
SQLClient.ipc | ||
SQLServer.ipc | ||
SQLStatement.cpp | ||
SQLStatement.h |