MCPcopy Create free account
hub / github.com/deskflow/deskflow / logErrorByCode

Method logErrorByCode

src/lib/net/SslLogger.cpp:136–174  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

134}
135
136void SslLogger::logErrorByCode(int code, int retry)
137{
138 switch (code) {
139 case SSL_ERROR_NONE:
140 break;
141
142 case SSL_ERROR_ZERO_RETURN:
143 LOG_DEBUG("tls connection closed");
144 break;
145
146 case SSL_ERROR_WANT_READ:
147 LOG_DEBUG2("want to read, error=%d, attempt=%d", code, retry);
148 break;
149
150 case SSL_ERROR_WANT_WRITE:
151 LOG_DEBUG2("want to write, error=%d, attempt=%d", code, retry);
152 break;
153
154 case SSL_ERROR_WANT_CONNECT:
155 LOG_DEBUG2("want to connect, error=%d, attempt=%d", code, retry);
156 break;
157
158 case SSL_ERROR_WANT_ACCEPT:
159 LOG_DEBUG2("want to accept, error=%d, attempt=%d", code, retry);
160 break;
161
162 case SSL_ERROR_SYSCALL:
163 LOG_ERR("tls error occurred (system call failure)");
164 break;
165
166 case SSL_ERROR_SSL:
167 LOG_ERR("tls error occurred (generic failure)");
168 break;
169
170 default:
171 LOG_ERR("tls error occurred (unknown failure)");
172 break;
173 }
174}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected