WODHTTP does not always fire _DONE - WeOnlyDo Discussion board

WODHTTP does not always fire _DONE (wodHttpDLX)

by ihutee, Thursday, February 17, 2011, 23:08 (5028 days ago)

How can I fix this?

in my _Done i have a .disconnect so it closes the connection..

but _Done doesnt always fire. Sometimes _Disconnected fires instead.

_Disconnected shows a timeout error.

Even in the _Done event I have an if statement

If ErrorCode = 0 then
'run my routine
Else
'display error
End If

Can you help me figure out why _Done doesn't always fire, and sometimes the _Disconnected does instead.

Do I need to make my parse html routine in _Disconnected instead of _Done?

Re: WODHTTP does not always fire _DONE

by wodDamir, Friday, February 18, 2011, 00:02 (5028 days ago) @ ihutee

ihutee,

Done event isn't triggered for connection related errors. It is only triggered in cases when connection to server was successful, but some error occured at that time.

If connection was unsuccessful, Disconnect will be triggered instead.

Regards,
Damba

Re: WODHTTP does not always fire _DONE

by ihutee, Friday, February 18, 2011, 00:32 (5028 days ago) @ wodDamir

Follow Up:

In the _Disconnected event I am trying to change proxy but I am receiving the error Cannot change host information at this time. Error.

Why cannot I change the proxy if it has already Disconnected the connection. I am quite confused why this is happening. Can you help me out here?

Re: WODHTTP does not always fire _DONE

by ihutee, Friday, February 18, 2011, 00:41 (5028 days ago) @ ihutee

Also, I cannot set blocking mode to True as I am arraying multiple wodhttps. This would make it so #1 would need to finish before #2 could start. Im using these simultaniously.

Please let me know ASAP!

Re: WODHTTP does not always fire _DONE

by wodDamir, Friday, February 18, 2011, 09:54 (5028 days ago) @ ihutee

ihutee,

The error you're mentioning is only thrown in case of an active connection (State is other then Disconnected).

Can you please check the State property when this exception is thrown?

Regards,
Damba