Changeset 15430

Show
Ignore:
Timestamp:
09/06/2008 11:03:06 AM (3 months ago)
Author:
elupus
Message:

changed: disable multi session connections agains libupnp's http server as it often stall on start the new session untill you finish the
other (or perhaps just continue to read)

Location:
branches/linuxport/XBMC/xbmc/FileSystem
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • branches/linuxport/XBMC/xbmc/FileSystem/FileCurl.cpp

    r15311 r15430  
    273273  m_curlHeaderList = NULL; 
    274274  m_opened = false; 
     275  m_multisession  = true; 
     276  m_seekable = true; 
    275277  m_useOldHttpVersion = false; 
    276278  m_timeout = 0; 
     
    591593    CLog::Log(LOGDEBUG,"FileCurl - file <%s> is a shoutcast stream. re-opening", m_url.c_str()); 
    592594    throw new CRedirectException(new CFileShoutcast);  
     595  } 
     596 
     597  m_multisession = false; 
     598  if(m_url.Left(5).Equals("http:") || m_url.Left(6).Equals("https:")) 
     599  { 
     600    m_multisession = true; 
     601    if(m_state->m_httpheader.GetValue("Server").Find("Portable SDK for UPnP devices") >= 0) 
     602    { 
     603      CLog::Log(LOGWARNING, "FileCurl - disabling multi session due to broken libupnp server"); 
     604      m_multisession = false; 
     605    } 
    593606  } 
    594607 
     
    666679 
    667680  CReadState* oldstate = NULL; 
    668   if(m_url.Left(5).Equals("http:") || m_url.Left(6).Equals("https:")) 
     681  if(m_multisession) 
    669682  { 
    670683    CURL url(m_url); 
  • branches/linuxport/XBMC/xbmc/FileSystem/FileCurl.h

    r13101 r15430  
    129129      bool            m_useOldHttpVersion; 
    130130      bool            m_seekable; 
     131      bool            m_multisession; 
    131132      bool            m_binary; 
    132133