bug-mailfromd
Re: [Bug-mailfromd] uncaught exception e_eof: EOF on
>
> > Has something changed related to this txt lookup, it seems to always
> > generate "uncaught exception e_eof: EOF on"
>
> First of all, why do you have to call external program when you can do
> the same using dns_query()[1]?
It did not exists then ;) I converted the lookups now, is there a timeout on this? I am querying only asn records. But some providers generate on purpose a huge timeout.
> As to your question: nothing changed and it not always generates this
> error. Any input function (getline, in particular) throws e_eof on end
> of file. In your case, if "dig" outputs something, getline() returns
> first
> line from its output. If the output is empty (no txt found), getline()
> throws e_eof.
I am constantly querying the same zone and it generates the same output, maybe some conversion is throwing this e_eof? I also tried with and setbuf(fd) and fd_set_delimiter(fd, "|"). This pipe is in the middle of the only dns result line, so I assumed that should always give a result.