Created
December 23, 2014 16:53
-
-
Save hyangah/35e4a1e89b05de554ce8 to your computer and use it in GitHub Desktop.
example/libhello: http get without crash https://go-review.googlesource.com/2067 patch set 3.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
adb logcat | grep 24795 | |
V/Zygote (24795): Switching descriptor 33 to /dev/null | |
V/Zygote (24795): Switching descriptor 10 to /dev/null | |
D/dalvikvm(24795): Late-enabling CheckJNI | |
I/ActivityManager( 496): Start proc com.example.hello for activity com.example.hello/.MainActivity: pid=24795 uid=10182 gids={50182, 3003, 1028, 1015} | |
D/ActivityThread(24795): handleBindApplication:com.example.hello | |
D/ActivityThread(24795): setTargetHeapUtilization:0.75 | |
D/ActivityThread(24795): setTargetHeapMinFree:524288 | |
D/dalvikvm(24795): Trying to load lib /data/app-lib/com.example.hello-1/libgojni.so 0x4244a7d8 | |
D/dalvikvm(24795): Added shared lib /data/app-lib/com.example.hello-1/libgojni.so 0x4244a7d8 | |
I/Go (24795): app.Run | |
I/GoLog (24795): get https://www.example.com | |
I/go/Seq (24795): loaded go/Seq | |
I/GoLog (24795): about to send request: &{Method:GET URL:https://www.example.com Proto:HTTP/1.1 ProtoMajor:1 ProtoMinor:1 Header:map[] Body:<nil> ContentLength:0 TransferEncoding:[] Close:false Host:www.example.com Form:map[] PostForm:map[] MultipartForm:<nil> Trailer:map[] RemoteAddr: RequestURI: TLS:<nil>} | |
I/Go (24795): Runtime started | |
I/GoStdio (24795): Hello, world! | |
I/Timeline(24795): Timeline: Activity_idle id: android.os.BinderProxy@42443360 time:942218296 | |
I/GoLog (24795): response received | |
I/GoLog (24795): Success! Happily read "<!doctype html>\n<html>\n<head>\n <title>Example Domain</title>\n\n <meta charset=\"utf-8\" />\n <meta http-equiv=\"Content-type"... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment