Yes the problem arises, when the user cancels the download. That causes the socket to close and aolserver cannot write to it anymore. It is nothing to worry about, and i think the error disapeared when i changed db_exec_lob to use ns_returnfile (which is also better because it can handle if-modified-since http commands) instead of ns_writefp.