Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-1.1
Commits
6bafce69
Commit
6bafce69
authored
Dec 25, 2004
by
Clément Stenac
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix connection close, patch by Ted Deppner <ted at psyber dot com>
parent
6197001f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
1 deletion
+10
-1
modules/control/telnet.c
modules/control/telnet.c
+10
-1
No files found.
modules/control/telnet.c
View file @
6bafce69
...
...
@@ -278,8 +278,9 @@ static void Run( intf_thread_t *p_intf )
else
if
(
FD_ISSET
(
cl
->
fd
,
&
fds_read
)
)
{
int
i_end
=
0
;
int
i_recv
;
while
(
recv
(
cl
->
fd
,
cl
->
p_buffer_read
,
1
,
0
)
>
0
&&
while
(
(
i_recv
=
recv
(
cl
->
fd
,
cl
->
p_buffer_read
,
1
,
0
)
)
>
0
&&
cl
->
p_buffer_read
-
cl
->
buffer_read
<
999
)
{
switch
(
cl
->
i_tel_cmd
)
...
...
@@ -330,6 +331,14 @@ static void Run( intf_thread_t *p_intf )
Write_message
(
cl
,
NULL
,
"Line too long
\r\n
"
,
cl
->
i_mode
+
2
);
}
if
(
i_recv
==
0
)
{
net_Close
(
cl
->
fd
);
TAB_REMOVE
(
p_intf
->
p_sys
->
i_clients
,
p_intf
->
p_sys
->
clients
,
cl
);
free
(
cl
);
}
}
}
...
...
Write
Preview
Markdown
is supported
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