~ubuntu-branches/ubuntu/trusty/libtorrent/trusty

« back to all changes in this revision

Viewing changes to src/protocol/handshake_manager.cc

  • Committer: Package Import Robot
  • Author(s): Rogério Brito, Benoît Knecht, Rogério Brito
  • Date: 2012-05-29 01:19:37 UTC
  • mfrom: (1.1.15) (4.1.12 sid)
  • Revision ID: package-import@ubuntu.com-20120529011937-lobv0fvgy5ps3o3d
Tags: 0.13.2-1
[ Benoît Knecht ]
* New upstream version. Closes: #632315.
* Run the test suite at build time.
* Let upstream's configure script choose between Linux's fallocate(2) and
  posix_fallocate(3).
* Put the complete MPL-1.1 in debian/copyright, as required by debian policy
  12.5.

[ Rogério Brito ]
* debian/control:
  + Remove useless coding indication.
  + Add Benoît to the list of uploaders. Thanks for reviving this!
* debian/copyright: Update my copyright years.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
// libTorrent - BitTorrent library
2
 
// Copyright (C) 2005-2007, Jari Sundell
 
2
// Copyright (C) 2005-2011, Jari Sundell
3
3
//
4
4
// This program is free software; you can redistribute it and/or modify
5
5
// it under the terms of the GNU General Public License as published by
195
195
  PeerConnectionBase* pcb;
196
196
 
197
197
  if (download->info()->is_active() &&
198
 
 
199
 
      // We need to make libtorrent more selective in the clients it
200
 
      // connects to, and to move this somewhere else.
201
 
      (!download->file_list()->is_done() || !handshake->bitfield()->is_all_set() || download->initial_seeding() != NULL) &&
 
198
      download->connection_list()->want_connection(handshake->peer_info(), handshake->bitfield()) &&
202
199
 
203
200
      (pcb = download->connection_list()->insert(handshake->peer_info(),
204
201
                                                 handshake->get_fd(),