Quantcast
Channel: beginners - openFrameworks
Viewing all articles
Browse latest Browse all 4929

How to handle ofURLFileLoader: handleRequest(): Connection refused

$
0
0

@lucasrangit wrote:

If the server in ofLoadURLAsync is not reachable then call will constantly fail with the following error. The callback handler is called repeatedly. How should I handle this?

For now I am using ofRemoveAllURLRequests() and ofStopURLLoader() in the handler to stop it. However, I would rather cancel only the failing request. Perhaps the request should not be retried and this is a bug in ofURLFileLoader, if so I can try to make a patch.

[ error ] ofURLFileLoader: handleRequest(): Connection refused
[ error ] ofURLFileLoader: handleRequest(): Connection refused
[ error ] ofURLFileLoader: handleRequest(): Connection refused
[ error ] ofURLFileLoader: handleRequest(): Connection refused
...

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 4929

Trending Articles