Commit a735127f authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Revert "No need to send Connection: close or Connection: Keep-Alive."

This reverts commit 4e497a21.
parent c5381865
......@@ -1193,6 +1193,17 @@ static int Request( access_t *p_access, int64_t i_tell )
net_Printf( VLC_OBJECT(p_access), p_sys->fd, pvs, "Icy-MetaData: 1\r\n" );
if( p_sys->b_continuous )
{
net_Printf( VLC_OBJECT( p_access ), p_sys->fd, pvs,
"Connection: Keep-Alive\r\n" );
}
else if( p_sys->i_version == 1 )
{
net_Printf( VLC_OBJECT( p_access ), p_sys->fd, pvs,
"Connection: Close\r\n");
}
if( net_Printf( VLC_OBJECT(p_access), p_sys->fd, pvs, "\r\n" ) < 0 )
{
msg_Err( p_access, "failed to send request" );
......@@ -1445,9 +1456,6 @@ static int Request( access_t *p_access, int64_t i_tell )
free( psz );
}
if(p_sys->i_remaining == 0 && (p_access->info.i_size == -1 || p_access->info.i_size == i_tell)) {
Disconnect( p_access );
}
return VLC_SUCCESS;
error:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment