News for hackers. Stuff that matters.
Re:Robdns – A fast DNS server based on C10M principles by halayli on Sunday December 28, 2014 @10:05PM (#8808392)
It doesn't have to be interesting. Incorrect code covers a spectrum and is not black or white. The term "edge-case" describes it pretty well.

Regarding mallocs, again you don't have to overthink error-handling. Just handle it and figure out how to deal with it if it happens.

C++ has nothrow and try/catch. If you want to catch a failed new or abort is something up to the user. One thing for sure is that C++ aborts on failed new instead of stumping on unallocated memory.

On the other hand, consistency is important. Some parts of the code handled fd correctly and malloc failures and other parts did not.

I recommend you applaud good programming practices and criticize bad ones. Defending/arguing bad programming practices(whether they are edge cases or not) doesn't help.

Re:Robdns – A fast DNS server based on C10M principles by tptacek on Monday December 29, 2014 @12:17PM (#8810663)
I responded to this downthread.