Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Petr Menšík
BIND
Commits
7523838d
Commit
7523838d
authored
Aug 31, 2000
by
Mark Andrews
Browse files
make error message more informative.
parent
4a30ede9
Changes
1
Hide whitespace changes
Inline
Side-by-side
lib/isc/unix/socket.c
View file @
7523838d
...
...
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
/* $Id: socket.c,v 1.16
1
2000/08/
29 2
3:
5
8:
1
5
bwelling
Exp $ */
/* $Id: socket.c,v 1.16
2
2000/08/
31 1
3:
3
8:
5
5
marka
Exp $ */
#include <config.h>
...
...
@@ -951,6 +951,7 @@ doio_send(isc_socket_t *sock, isc_socketevent_t *dev) {
struct
iovec
iov
[
MAXSCATTERGATHER_SEND
];
size_t
write_count
;
struct
msghdr
msghdr
;
char
addrbuf
[
ISC_SOCKADDR_FORMATSIZE
];
build_msghdr_send
(
sock
,
dev
,
&
msghdr
,
iov
,
&
write_count
);
...
...
@@ -1000,9 +1001,10 @@ doio_send(isc_socket_t *sock, isc_socketevent_t *dev) {
* However, these soft errors are still returned as
* a status.
*/
isc_sockaddr_format
(
&
dev
->
address
,
addrbuf
,
sizeof
(
addrbuf
));
UNEXPECTED_ERROR
(
__FILE__
,
__LINE__
,
"internal_send: %s"
,
strerror
(
errno
));
"internal_send:
%s:
%s"
,
addrbuf
,
strerror
(
errno
));
if
(
sock
->
connected
&&
sock
->
type
==
isc_sockettype_tcp
)
sock
->
send_result
=
ISC_R_UNEXPECTED
;
send_senddone_event
(
sock
,
&
dev
,
ISC_R_UNEXPECTED
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment