Skip to content

Commit

Permalink
Added strict file-op timeout for image repository is-dir
Browse files Browse the repository at this point in the history
  • Loading branch information
parg committed Sep 24, 2023
1 parent 4f256af commit e3d8289
Show file tree
Hide file tree
Showing 3 changed files with 196 additions and 113 deletions.
21 changes: 18 additions & 3 deletions core/src/com/biglybt/core/torrent/impl/TOTorrentImpl.java
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,11 @@
protected static final String TK_V2_PIECE_LAYERS = "piece layers";
protected static final String TK_V2_PIECES_ROOT = "pieces root";

//public static final String TK_INFO_BIGLY_FLAGS = "bigly_flags";
//public static final long TK_INFO_BIGLY_FLAGS_BIGLY_PRIVATE = 0x0001L;

//private static final String TK_INFO_BIGLY_PRIVATE = "bigly_private";

private static CopyOnWriteList<TOTorrentListener> global_listeners = new CopyOnWriteList<>();

public static void
Expand Down Expand Up @@ -925,7 +930,7 @@ protected void setCreatedBy(String _created_by) {

protected void
setHashFromInfo(
Map info )
Map<String,Object> info )

throws TOTorrentException
{
Expand All @@ -937,9 +942,19 @@ protected void setCreatedBy(String _created_by) {
Debug.out( "Torrent type unknown" );
}

byte[] encoded = BEncoder.encode(info);
/*
Long flags = (Long)additional_info_properties.get( TK_INFO_BIGLY_FLAGS );
if ( flags != null && (( flags & TK_INFO_BIGLY_FLAGS_BIGLY_PRIVATE ) != 0 )){
info = new HashMap<>( info );
info.put( TK_INFO_BIGLY_PRIVATE, 1L );
}
*/

byte[] encoded = BEncoder.encode(info);

if ( torrent_type == TT_V1_V2 ){

Map private_props = getAdditionalMapProperty( AZUREUS_PRIVATE_PROPERTIES );
Expand Down
Loading

0 comments on commit e3d8289

Please sign in to comment.