https 上传数据文件,每10秒一次,每次小于3k数据,10分钟左右开始报错(send head fail)

谢谢。

日志如下:

[I]-[ril.proatc]

[I]-[ril.proatc]SSL&6,CONNECT OK

[I]-[ril.sendat]AT+SSLCREATE=4,www.example.com:443,1

[W]-[UPLOAD]62 macs1219/4658 Bytes

[I]-[ril.proatc]

[I]-[ril.proatc]SSL&5,SEND OK

[I]-[ril.sendat]AT+SSLCONNECT=4

[I]-[ril.proatc]

[I]-[ril.proatc]SSL&4,CREATE OK

[I]-[ril.sendat]AT+SSLDESTROY=5

[I]-[ril.proatc]

[I]-[ril.proatc]OK

[E]-[http.response]falsesend head fail

[E]-[UPLOAD]Can not upload data: send head fail

[W]-[UPLOAD]794 KB RAM

[I]-[ril.sendat]AT+SSLCREATE=3,www.example.com:443,1

[I]-[ril.proatc]

[I]-[ril.proatc]+SSL RECEIVE,5,208:

[I]-[ril.proatc]HTTP/1.1 200 OK

[I]-[ril.proatc]Server: nginx/1.12.1

[I]-[ril.proatc]Date: Tue, 08 Jan 2019 05:02:10 GMT

[I]-[ril.proatc]Content-Type: text/html; charset=UTF-8

[I]-[ril.proatc]Transfer-Encoding: chunked

[I]-[ril.proatc]Connection: keep-alive

[I]-[ril.proatc]X-Powered-By: PHP/5.6.33

[I]-[ril.proatc]

[I]-[ril.proatc]2

[I]-[ril.proatc]ok

[I]-[ril.proatc]0

[I]-[ril.proatc]

[W]-[socket: receive on nil socket]5

[I]-[ril.proatc]

[I]-[ril.proatc]SSL&5,DESTROY OK

[I]-[ril.sendat]AT+SSLCONNECT=3

[I]-[ril.proatc]

[I]-[ril.proatc]SSL&3,CREATE OK

[I]-[ril.proatc]

[I]-[ril.proatc]SSL&4,CONNECT OK

[I]-[ril.sendat]AT+SSLSEND=4,648

[I]-[ril.proatc]

[I]-[ril.proatc]OK

[I]-[ril.sendat]AT+SSLDESTROY=4

[I]-[ril.proatc]> 

[E]-[error promot cmd:]AT+SSLDESTROY=4

[W]-[UPLOAD]47 macs910/3538 Bytes

[I]-[ril.proatc]

[I]-[ril.proatc]SSL&3,CONNECT OK

[E]-[http.response]falsesend head fail

[E]-[SETTINGS]Can not synchronize settings: send head fail

[W]-[SETTINGS]791 KB RAM

[I]-[ril.sendat]AT+SSLCREATE=2,www.example.com:443,1

[W]-[UPLOAD]47 macs963/3589 Bytes

[W]-[UPLOAD]64 macs1261/4795 Bytes

[W]-[UPLOAD]38 macs876/2854 Bytes

[W]-[UPLOAD]53 macs956/3908 Bytes

[I]-[ril.proatc]

[I]-[ril.proatc]SSL&6,CLOSED

[W]-[SETTINGS]version: 3504 Bytes

[W]-[UPLOAD]76 macs1382/5693 Bytes

[W]-[socket.socket: too many sockets]

[E]-[http.response]falsecreate socket error

[E]-[UPLOAD]Can not upload data: create socket error

[W]-[UPLOAD]782 KB RAM

[I]-[ril.proatc]

[I]-[ril.proatc]SSL&4,CLOSED

[I]-[ril.proatc]

[I]-[ril.proatc]SSL&3,CLOSED

[W]-[UPLOAD]67 macs1275/4955 Bytes

[W]-[socket.socket: too many sockets]

[E]-[http.response]falsecreate socket error

[E]-[UPLOAD]Can not upload data: create socket error

[W]-[UPLOAD]792 KB RAM

[W]-[UPLOAD]44 macs915/3231 Bytes

[W]-[socket.socket: too many sockets]

[E]-[http.response]falsecreate socket error

[E]-[UPLOAD]Can not upload data: create socket error

[W]-[UPLOAD]785 KB RAM

[W]-[UPLOAD]56 macs1040/4097 Bytes

[W]-[socket.socket: too many sockets]

[E]-[http.response]falsecreate socket error

[E]-[UPLOAD]Can not upload data: create socket error

[W]-[UPLOAD]790 KB RAM

[W]-[UPLOAD]49 macs980/3631 Bytes

[W]-[socket.socket: too many sockets]

[E]-[http.response]falsecreate socket error

[E]-[UPLOAD]Can not upload data: create socket error

[W]-[UPLOAD]779 KB RAM

[W]-[UPLOAD]47 macs1009/3534 Bytes

[W]-[socket.socket: too many sockets]

[E]-[http.response]falsecreate socket error

[E]-[UPLOAD]Can not upload data: create socket error

[W]-[UPLOAD]770 KB RAM

[W]-[SETTINGS]version: 3504 Bytes

[W]-[socket.socket: too many sockets]

[E]-[http.response]falsecreate socket error

[E]-[SETTINGS]Can not synchronize settings: create socket error

[W]-[SETTINGS]779 KB RAM

[W]-[UPLOAD]66 macs1311/4890 Bytes

[W]-[socket.socket: too many sockets]

[E]-[http.response]falsecreate socket error

[E]-[UPLOAD]Can not upload data: create socket error

[W]-[UPLOAD]784 KB RAM

[W]-[UPLOAD]59 macs1126/4402 Bytes

[W]-[socket.socket: too many sockets]

[E]-[http.response]falsecreate socket error

[E]-[UPLOAD]Can not upload data: create socket error

[W]-[UPLOAD]789 KB RAM

lualibc_fopen_ext /ldata/settings.json r 0 1 2

请先 登录 后评论

2 个回答

技术销售Wendal - 软件工程师
擅长:软件开发

socket.socket: too many sockets, 之前的请求还没来得及结束, 把socket数耗完了

请先 登录 后评论
晨旭 - 菜鸟

参考http://ask.openluat.com/question/801里我回答的代码

请先 登录 后评论
  • 0 关注
  • 0 收藏,2874 浏览
  • 高鹏 提出于 2019-01-08 13:37