Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitcc818a8

Browse files
committed
Move X packet before shutdown().
1 parent3152ef6 commitcc818a8

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

‎src/interfaces/odbc/socket.c

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -77,14 +77,10 @@ SOCK_Destructor(SocketClass *self)
7777
{
7878
if (self->socket!=-1)
7979
{
80+
SOCK_put_char(self,'X');
81+
SOCK_flush_output(self);
8082
if (!shutdown(self->socket,2))/* no sends or receives */
81-
{
82-
#ifdefDOES_NOT_WORK
83-
SOCK_put_char(self,'X');
84-
SOCK_flush_output(self);
85-
#endif
8683
closesocket(self->socket);
87-
}
8884
}
8985

9086
if (self->buffer_in)

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp