Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

推荐使用master分支还是使用releaese里的代码? #24

Closed
zhaowq32 opened this issue Dec 20, 2018 · 6 comments
Closed

推荐使用master分支还是使用releaese里的代码? #24

zhaowq32 opened this issue Dec 20, 2018 · 6 comments

Comments

@zhaowq32
Copy link
Contributor

你好:
有2个问题想问下:
1、推荐使用master分支还是使用releaese里的代码?
2、android Android.mk的编译方式没有将对应架构的curl的目录传给编译器,会默认使用系统x86架构的头文件么?会有啥影响么?

@shabicheng
Copy link
Collaborator

  1. 如果是Android,建议使用live分支,其他情况使用lite分支,master分支一般用于服务器
  2. mk文件你可以自己改一下,include路径引用自己的编译的curl就行,不要用默认的X86

@zhaowq32
Copy link
Contributor Author

有开关控制么?我的应用开始是需要将消息缓存的,待开关开启后才会真正的进行生产。另外这个线程安全么?

@shabicheng
Copy link
Collaborator

  1. 自动缓存这个事情,producer已经帮你做好了,后台会根据缓存的时间间隔、数据量自动去做,数据都是批量压缩发送的。
  2. 是线程安全的

@zhaowq32
Copy link
Contributor Author

我可能描述的不是很清楚,我的目的是想控制日志是否发送往服务器。但这个开关是在应用运行过程中才能获得。所以就需要在获得开关之前,将日志进行缓存,但不发送。当开关变为true时,才进行发送,否则就关闭日志发送功能。

@shabicheng
Copy link
Collaborator

这个功能我们没有,你可以自己定制,在发送那边加一个标志位,自己控制一下就好了

@zhaowq32
Copy link
Contributor Author

好的 麻烦了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants