dosgo / ngrok-c

ngrok client for c language,Due to the use of GO ngrok language development, porting to embedded devices some inconvenience, such as openwrt, so use C language rewrite a client. Very mini, the need to support polarssl library.
MIT License
497 stars 202 forks source link

同时多个连接会崩溃,如何差错啊? #42

Closed jlikeme closed 7 years ago

jlikeme commented 7 years ago

自己改了一个纯C的(在ubuntu中运行还算正常)移植到嵌入式系统中,同时有超过5、6个连接时就会崩溃,不知道从哪个方面入手查错。 还有没有人有纯C的ngrok啊?

dosgo commented 7 years ago

多半是嵌入式内存不够。。

jlikeme commented 7 years ago

这个程序在正常情况下会占用多少内存呢? @dosgo

dosgo commented 7 years ago

这个东西有2个线程。。一个主线程,一个数据的。。所以你得看你的线程栈多大。。几个M吧。。要调试也不难。。