git/list[1] front-page[2] threads[3] people[4] search[5] about
 

socket_perror() "bug"?

From
Thiago Farina <tfransosi@gmail.com>
Date
Mar 30, 2014, 19:32 UTC
Message-ID
<CACnwZYc2py4dxehg2=gnnPLxwJaRqXYTLQvC1O7YuoqAWsZ0Tg@mail.gmail.com>
Hi,

In imap-send.c:socket_perror() we pass |func| as a parameter, which I think it is the name of the function that "called" socket_perror, or the name of the function which generated an error.

But at line 184 and 187 it always assume it was SSL_connect.
Should we instead call perror() and ssl_socket_error() with func?

-- Thiago Farina

Next: Junio C Hamano
Message 1 of 4 in “socket_perror() "bug"?”
  1. Thiago FarinaMar 30, 2014
  2. Junio C HamanoMar 31, 2014
  3. Thiago FarinaApr 2, 2014
  4. Junio C HamanoApr 3, 2014

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.