> It is in separate functions... how you know if you want to read just one
> line or more lines? Waiting for timeout is very bad idea.
You have a point, but let be more specific. For example, STAT returns one line
for example "+OK 1 1452", USER, PASS, LIST n, "TOP n, m", etc, as well as any
error command return one line: "-ERR". That mean that "+OK" follows other
non-space characters return one line.
Any LIST, UIDL, TOP n, RETR etc, return first line with only "+OK" and
"."+CRLF at finish. That are multilines.
According to upper, After analyze of first line you know is it receiving one
line or more. That way you avoid mentioned problem with timeout, but add raw
lines in RAW/FullResult without any parse.
After that you can parse RAW/FullResult or not (for telnet abbility). This way
there is no need for additional methods to support one or more lines
response.
> This allows resume downloading... Firefox using it too!
I'm sure for IE (4) behavior, it allow resuming only if you click again on
exact download link EXACTLY after transfer break - otherwise temp file link
is lost. With IE you can't see part of downloaded file in destination
directory (it is somewhere in temp directory).
> It not breaking idea of temporary files for downloading. I not see any
> problem.
We discussing about unhandled error which can be easily be "part" of file.
Problem is currently with HTTP.Documnt. What is needed is to handle code
errors in app itself, since HTTP.Method('GET') will return no allarm on 416
or other than 204 and 304. I.e., HTTP.ResultCode need to be checked outside
of synapse to say that HTTP.Documnt contain no data but error message in
which case content in HTTP.Documnt we do not add to filestream etc. I see no
reason why pressing programmer for that additional analyse - all can be
handled painlessly inside synapse.
If we get data directly into stream destination, we need to handle all errors
before appending actually starts.
Sasa
--
www.szutils.net
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
synalist-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/synalist-public