Cocoapods: Make Sending Stats an optional behaviour ? It's sometimes very slow.

Created on 5 Sep 2015  路  3Comments  路  Source: CocoaPods/CocoaPods

image

The program blocked for 5 minutes. I'm in China. So I think may be in some countries, sending stats may be very slow.

Pod sometimes say 'Failed to send stats: Operation timed out - SSL_connect', but when the internet is not blocked totally, just some other reason makes it cannot send data. Pod can block for a long time.

So could you make an option --no-sending-stats to make it optional.

I always use pod install --verbose --no-repo-update make pod fast and use it very a lot. Now sending stats part gradually become slow. So propose this idea to make pod fast.

@segiddins

Most helpful comment

Stats has always been optional, you can add ENV["COCOAPODS_DISABLE_STATS"] = "true" to your Podfile it will not send it. Also, 0.39+ sends stats async so it shouldn't exhibit the same behavior in terms of locking your terminal.

All 3 comments

Stats has always been optional, you can add ENV["COCOAPODS_DISABLE_STATS"] = "true" to your Podfile it will not send it. Also, 0.39+ sends stats async so it shouldn't exhibit the same behavior in terms of locking your terminal.

@orta Just want to highlight that this issue still remains for me. The install runs fast and then stops on "sending stats". Disabling stats decreases runtime by a non-significant factor.

Version 1.5.3

@joarwilk yup that is tracked in #8316

Was this page helpful?
0 / 5 - 0 ratings