Uncle Fetcher wrote:
> I contacted the site I was having problems with.
> Things seem to be working fine now.  They didn't tell
> me what they did to fix the problem.  I'm guessing
> they installed a software update.
>
> I'm still puzzled why this only seemed to be a problem
> for ME.  I'm just a lucky guy I suppose.

Oh, I can tell you that you weren't the only one to see the strange
behaviour of the server... I took your example application, ran it
through a couple of times, stepped it through even more times, and can
ascertain that the server dropped the connection between reading
packages (while attempting to read the whole content of the page).

This was repeatable, but since I couldn't find any reason (other than
"the server seems to be throwing up"), I didn't feel the need to report
it.

On my opinion, Synapse was working 100% correctly; the header was
received, the content was not (only partially, but usually such response
is useless, and thus) reporting that the request was not succesfuul is
entirely correct.

On a separate note; since the socket is closed automatically, the
LastError-variable gets reset to 0 before returning. Would there have
been a way to see the socket errorcode (that was in the variable before
the socket was closed/finalized/whatever) *after* the failed connection
attempt? It would've propably given at least some way to further debug
the situation at the code - or at least give us the chance to say to the
user something like "Sorry, request has failed. Reason was the cryptical
socket error '10054: Connection was reset', for which we honestly can do
nothing about.".

I usually build applications that aren't really too interested if
something goes wrong or not "sometimes", so I've not been too interested
in getting this information in the first place. However, much to my
shame, I don't seem to know where I could get this information from if I
wanted it :-p

-- 
Markku Uttula


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
synalist-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/synalist-public

Reply via email to