Minichan

Topic: Warning (2): fsockopen(): unable to connect to znc.minichan.org:4324 (No route to host) in /includes

Anonymous A started this discussion 12 years ago #35,767

That feel when you don’t catch exceptions from external dependencies.

https://stackoverflow.com/questions/11800142/trouble-getting-php-fsockopen-to-ignore-errors
https://stackoverflow.com/questions/4330494/preventing-warnings-from-fsockopen

Anonymous B joined in and replied with this 12 years ago, 9 minutes later[^] [v] #490,277

yea, I kept getting that too

r04r joined in and replied with this 12 years ago, 3 minutes later, 12 minutes after the original post[^] [v] #490,278

I thought I did that already, but guess not. That memory. Anyway, will be fixed in a minute.

r04r double-posted this 12 years ago, 16 minutes later, 29 minutes after the original post[^] [v] #490,279

Our custom error handler was in the way, which made the @ not work lol

Anonymous D joined in and replied with this 12 years ago, 1 hour later, 1 hour after the original post[^] [v] #490,282

@490,278 (r04r)
Sounds like a job for unit and integration testing! ;)

r04r replied with this 12 years ago, 1 minute later, 1 hour after the original post[^] [v] #490,283

@previous (D)
With this legacy codebase? Not happening. It would need a complete overhaul for that to be possible, and I don't have the time for that. But yes, you are right.
:

Please familiarise yourself with the rules and markup syntax before posting.