BaseXdb / basex

BaseX Main Repository.
http://basex.org
BSD 3-Clause "New" or "Revised" License
684 stars 265 forks source link

Throw exception on socket closure or error in read() #2226

Closed tmarnell closed 1 year ago

tmarnell commented 1 year ago

Check the result of socket_recv within read() and throw a BaseXException if 0 or false. Without this check, an unexpected closure or error in the middle of a read operation will result in a never ending while loop within readString().