Sha256: 739007e0160689c16f7abec25368a52a06805f1ef434e5c6b2251b3811292734
Contents?: true
Size: 593 Bytes
Versions: 2
Compression:
Stored size: 593 Bytes
Contents
#!/usr/bin/env ruby # encoding: UTF-8 #$VERBOSE = true $: << File.dirname(__FILE__) #$: << File.expand_path("../../../curb/ext") #$: << File.expand_path("../../../curb/lib") require 'curb' $cnt = 0 $url = "localhost:7660/data.json" begin while true before = GC.count curl = Curl::Easy.new($url) curl.ssl_verify_host = false curl.http_get if before != GC.count puts " did a GC in curl #{GC.count}" before = GC.count end $cnt += 1 print "\r #{$cnt}" end rescue Exception => e puts "#{e.class}: #{e.message}" puts "url: #{$url}" end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
oj-2.18.5 | test/curl/just_curl.rb |
oj-2.18.3 | test/curl/just_curl.rb |