Ticket #9145: libtorrent.patch

File libtorrent.patch, 1.5 KB (added by sav, 7 years ago)

update libtorrent to 0.12.7 r1195.

  • libtorrent

    diff -durN libtorrent.old/Makefile libtorrent/Makefile
    old new  
    88include $(TOPDIR)/rules.mk 
    99 
    1010PKG_NAME:=libtorrent 
    11 PKG_REV:=1189 
    12 PKG_VERSION:=0.12.6_r$(PKG_REV) 
    13 PKG_RELEASE:=3 
     11PKG_REV:=1195 
     12PKG_VERSION:=0.12.7_r$(PKG_REV) 
     13PKG_RELEASE:=1 
    1414 
    1515PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2 
    1616PKG_SOURCE_URL:=svn://rakshasa.no/libtorrent/trunk/libtorrent 
  • patches/124-fix_crash_conection_leech.patch

    diff -durN libtorrent.old/patches/124-fix_crash_conection_leech.patch libtorrent/patches/124-fix_crash_conection_leech.patch
    old new  
     1diff -durN a/src/protocol/peer_connection_leech.cc b/src/protocol/peer_connection_leech.cc 
     2--- a/src/protocol/peer_connection_leech.cc     2010-03-15 19:42:05.000000000 +0300 
     3+++ b/src/protocol/peer_connection_leech.cc     2010-11-17 14:13:15.000000000 +0300 
     4@@ -333,13 +333,13 @@ 
     5       m_down->set_state(ProtocolRead::READ_EXTENSION); 
     6     } 
     7  
     8-    if (!down_extension()) 
     9-      return false; 
     10+    if (down_extension()) { 
     11+      if (m_extensions->has_pending_message()) 
     12+       write_insert_poll_safe(); 
     13+      m_down->set_state(ProtocolRead::IDLE); 
     14+    } 
     15  
     16-    if (m_extensions->has_pending_message()) 
     17-      write_insert_poll_safe(); 
     18  
     19-    m_down->set_state(ProtocolRead::IDLE); 
     20     return true; 
     21  
     22   default: