From Coral Bat, 6 Years ago, written in Plain Text.
- go back
Embed
Viewing differences between and Untitled
  1. app@deb92:~/blade/vm/mod_signalwire$ rm testcli
  2. app@deb92:~/blade/vm/mod_signalwire$ make testcli
  3. gcc -o testcli -I/usr/include/libks -I/usr/local/include/signalwire-client-c -lks -L/usr/local/lib -lsignalwire_client -lconfig testcli.c
  4. app@deb92:~/blade/vm/mod_signalwire$ ./testcli 127.0.0.1:2100 a.json
  5.  [DEBUG] 17:30:53 #000065AD                      ks_thread.c:768   __ks_thread_create_ex                            Allocating new thread, current active and attached count: 1, current active and detatched count: 0
  6.  
  7.  [DEBUG] 17:30:53 #000065AD                      ks_thread.c:783   __ks_thread_create_ex                            Thread state change: KS_THREAD_CALLER_STATE_INIT => KS_THREAD_STARTING, address: 0x7ffc67ff71e8, tid: 00000000
  8.  
  9.  [DEBUG] 17:30:53 #000065AD                      ks_thread.c:786   __ks_thread_create_ex                            Thread state change: KS_THREAD_CALLER_STATE_INIT => KS_THREAD_CALLER_STATE_START_REQUESTED, address: 0x7ffc67ff71e8, tid: 00000000
  10.  
  11.  [DEBUG] 17:30:53 #000065AD                      ks_thread.c:794   __ks_thread_create_ex                            Waiting for thread thread to set running, with address: 0x5607b0c38358, tid: 00000000
  12.  
  13.  [DEBUG] 17:30:53 #000065AE                      ks_thread.c:203   thread_launch                                    Thread has launched with address: 0x5607b0c38358, tid: 00000000
  14.  
  15.  [DEBUG] 17:30:53 #000065AE                      ks_thread.c:217   thread_launch                                    Marking thread as running, with address: 0x5607b0c38358, tid: 00000000
  16.  
  17.  [DEBUG] 17:30:53 #000065AE                      ks_thread.c:224   thread_launch                                    Thread state change: KS_THREAD_STARTING => KS_THREAD_RUNNING, address: 0x7fa6d34b4850, tid: 00000000
  18.  
  19.  [DEBUG] 17:30:53 #000065AD                      ks_thread.c:821   __ks_thread_create_ex                            Allocated (attached) thread context ptr: 0x5607b0c38358, tid: 000065ae
  20.  
  21.  [DEBUG] 17:30:53 #000065AE                      ks_thread.c:244   thread_launch                                    START call user thread callback with address: 0x5607b0c38358, tid: 000065ae
  22.  
  23.   [INFO] 17:30:53 #000065AE                 handle_manager.c:222   __manager_loop                                   Manager loop starting
  24.   [INFO] 17:30:53 #000065AE                 handle_manager.c:202   __requested_service_in_ms                        Manager over due for service, last service interval was 1530091853213ms ago (max allowed is 300000ms)
  25.   [INFO] 17:30:53 #000065AE                 handle_manager.c:238   __manager_loop                                   Manager sleeping for service in: 1ms
  26.   [INFO] 17:30:53 #000065AE                 handle_manager.c:244   __manager_loop                                   Manager timed out waiting for 1ms
  27.   [INFO] 17:30:53 #000065AE                 handle_manager.c:147   __service_handle_type                            Service manager enumerating handles of type: Connection
  28.   [INFO] 17:30:53 #000065AE                 handle_manager.c:162   __service_handle_type                            Service manager serviced: 0 handles of type: Connection
  29.   [INFO] 17:30:53 #000065AE                 handle_manager.c:147   __service_handle_type                            Service manager enumerating handles of type: Session
  30.   [INFO] 17:30:53 #000065AE                 handle_manager.c:162   __service_handle_type                            Service manager serviced: 0 handles of type: Session
  31.   [INFO] 17:30:53 #000065AE                 handle_manager.c:147   __service_handle_type                            Service manager enumerating handles of type: Websocket
  32.   [INFO] 17:30:53 #000065AE                 handle_manager.c:162   __service_handle_type                            Service manager serviced: 0 handles of type: Websocket
  33.   [INFO] 17:30:53 #000065AE                 handle_manager.c:238   __manager_loop                                   Manager sleeping for service in: 300000ms
  34.  [DEBUG] 17:30:53 #000065AD                      ks_handle.c:284   __ks_handle_alloc_ex                             ALLOC - GROUP: 10 TOTAL: 0
  35.  [DEBUG] 17:30:53 #000065AD                      ks_handle.c:340   __ks_handle_alloc_ex                             ALLOCHANDLE: 000a00038b290001
  36.  [DEBUG] 17:30:53 #000065AD                      ks_handle.c:605   ks_handle_set_ready                              READYHANDLE: 000a00038b290001
  37.  [ERROR] 17:30:53 #000065AD                      ks_handle.c:623   ks_handle_set_ready                              READYHANDLE: 000a00038b290001 SUCCESS
  38.   [INFO] 17:30:53 #000065AD                        testcli.c:225   main                                             connecting to 127.0.0.1:2100 ...
  39.  
  40.  [DEBUG] 17:30:53 #000065AD                      ks_handle.c:284   __ks_handle_alloc_ex                             ALLOC - GROUP: 11 TOTAL: 0
  41.  [DEBUG] 17:30:53 #000065AD                      ks_handle.c:340   __ks_handle_alloc_ex                             ALLOCHANDLE: 000b00051f9a0001
  42.  [DEBUG] 17:30:53 #000065AD                       identity.c:12    swclt_ident_from_str                             Parsing 127.0.0.1:2100
  43.  
  44.  [DEBUG] 17:30:53 #000065AD                      ks_handle.c:284   __ks_handle_alloc_ex                             ALLOC - GROUP: 10 TOTAL: 0
  45.  [DEBUG] 17:30:53 #000065AD                      ks_handle.c:340   __ks_handle_alloc_ex                             ALLOCHANDLE: 000a00028b2a0002
  46.  [DEBUG] 17:30:53 #000065AD                      ks_handle.c:605   ks_handle_set_ready                              READYHANDLE: 000a00028b2a0002
  47.  [ERROR] 17:30:53 #000065AD                      ks_handle.c:623   ks_handle_set_ready                              READYHANDLE: 000a00028b2a0002 SUCCESS
  48.  [DEBUG] 17:30:53 #000065AD                      ks_handle.c:605   ks_handle_set_ready                              READYHANDLE: 000b00051f9a0001
  49.  [ERROR] 17:30:53 #000065AD                      ks_handle.c:623   ks_handle_set_ready                              READYHANDLE: 000b00051f9a0001 SUCCESS
  50.  [DEBUG] 17:30:53 #000065AD                      ks_handle.c:284   __ks_handle_alloc_ex                             ALLOC - GROUP: 10 TOTAL: 0
  51.  [DEBUG] 17:30:53 #000065AD                      ks_handle.c:340   __ks_handle_alloc_ex                             ALLOCHANDLE: 000a00048b2b0003
  52.  [DEBUG] 17:30:53 #000065AD                      ks_handle.c:605   ks_handle_set_ready                              READYHANDLE: 000a00048b2b0003
  53.  [ERROR] 17:30:53 #000065AD                      ks_handle.c:623   ks_handle_set_ready                              READYHANDLE: 000a00048b2b0003 SUCCESS
  54.   [INFO] 17:30:53 #000065AD                   handle_state.c:233   __swclt_hstate_initiate_change_in                Handle: Normal is initiating state change (state change: Online=>SWCLT Session - SWCLT Session - ) in: 1ms
  55.   [INFO] 17:30:53 #000065AD                 handle_manager.c:314   swclt_hmgr_request_service_in                    Handle: SWCLT Session - SWCLT Session - SWCLT Session -  is requesting manager service in: 1ms
  56.   [INFO] 17:30:53 #000065AD                 handle_manager.c:180   __set_sleep_amount_ms                            Client service interval: 1ms is < current service interval of: 300000ms, signalling manager
  57.   [INFO] 17:30:53 #000065AE                 handle_manager.c:257   __manager_loop                                   Manager signalled, checking sleep amount
  58.   [INFO] 17:30:53 #000065AE                 handle_manager.c:238   __manager_loop                                   Manager sleeping for service in: 3000ms
  59.  
  60.  
  61.  
  62.   [INFO] 17:30:56 #000065AE                 handle_manager.c:244   __manager_loop                                   Manager timed out waiting for 3000ms
  63.   [INFO] 17:30:56 #000065AE                 handle_manager.c:147   __service_handle_type                            Service manager enumerating handles of type: Connection
  64.   [INFO] 17:30:56 #000065AE                 handle_manager.c:162   __service_handle_type                            Service manager serviced: 0 handles of type: Connection
  65.   [INFO] 17:30:56 #000065AE                 handle_manager.c:147   __service_handle_type                            Service manager enumerating handles of type: Session
  66.   [INFO] 17:30:56 #000065AE                 handle_manager.c:155   __service_handle_type                            Service begin: SWCLT Session - SWCLT Session -
  67.   [INFO] 17:30:56 #000065AE                        session.c:214   __do_connect                                     Session is performing connect
  68.   [INFO] 17:30:56 #000065AE                        session.c:221   __do_connect                                     FAILED TO SETUP SSL: 21
  69.   [INFO] 17:30:56 #000065AE                 handle_manager.c:112   __service_handle                                 State change attempt (Normal=>Online) failed (21) re-queueing in: 5000ms
  70.   [INFO] 17:30:56 #000065AE                   handle_state.c:233   __swclt_hstate_initiate_change_in                Handle: Normal is initiating state change (state change: Online=>SWCLT Session - SWCLT Session - SWCLT Session - ) in: 5000ms
  71.   [INFO] 17:30:56 #000065AE                 handle_manager.c:314   swclt_hmgr_request_service_in                    Handle: SWCLT Session - SWCLT Session - SWCLT Session - SWCLT Session -  is requesting manager service in: 5000ms
  72.   [INFO] 17:30:56 #000065AE                 handle_manager.c:180   __set_sleep_amount_ms                            Client service interval: 5000ms is < current service interval of: 300000ms, signalling manager
  73.   [INFO] 17:30:56 #000065AE                 handle_manager.c:157   __service_handle_type                            Service end: SWCLT Session - SWCLT Session - SWCLT Session - SWCLT Session - SWCLT Session -
  74.   [INFO] 17:30:56 #000065AE                 handle_manager.c:162   __service_handle_type                            Service manager serviced: 1 handles of type: Session
  75.   [INFO] 17:30:56 #000065AE                 handle_manager.c:147   __service_handle_type                            Service manager enumerating handles of type: Websocket
  76.   [INFO] 17:30:56 #000065AE                 handle_manager.c:162   __service_handle_type                            Service manager serviced: 0 handles of type: Websocket
  77.   [INFO] 17:30:56 #000065AE                 handle_manager.c:238   __manager_loop                                   Manager sleeping for service in: 3000ms
  78.   [INFO] 17:30:59 #000065AE                 handle_manager.c:244   __manager_loop                                   Manager timed out waiting for 3000ms
  79.   [INFO] 17:30:59 #000065AE                 handle_manager.c:147   __service_handle_type                            Service manager enumerating handles of type: Connection
  80.   [INFO] 17:30:59 #000065AE                 handle_manager.c:162   __service_handle_type                            Service manager serviced: 0 handles of type: Connection
  81.   [INFO] 17:30:59 #000065AE                 handle_manager.c:147   __service_handle_type                            Service manager enumerating handles of type: Session
  82.   [INFO] 17:30:59 #000065AE                 handle_manager.c:155   __service_handle_type                            Service begin: SWCLT Session - SWCLT Session - SWCLT Session - SWCLT Session - SWCLT Session - SWCLT Session -
  83.   [INFO] 17:30:59 #000065AE                        session.c:214   __do_connect                                     Session is performing connect
  84.   [INFO] 17:30:59 #000065AE                        session.c:221   __do_connect                                     FAILED TO SETUP SSL: 21
  85.   [INFO] 17:30:59 #000065AE                 handle_manager.c:112   __service_handle                                 State change attempt (Normal=>Online) failed (21) re-queueing in: 5000ms
  86.   [INFO] 17:30:59 #000065AE                   handle_state.c:233   __swclt_hstate_initiate_change_in                Handle: Normal is initiating state change (state change: Online=>SWCLT Session - SWCLT Session - SWCLT Session - SWCLT Session - SWCLT Session - SWCLT Session - SWCLT Session - ) in: 5000ms
  87.   [INFO] 17:30:59 #000065AE                 handle_manager.c:314   swclt_hmgr_request_service_in                    Handle: SWCLT Session - SWCLT Session - SWCLT Session - SWCLT Session - SWCLT Session - SWCLT Session - SWCLT Session - SWCLT Session -  is requesting manager service in: 5000ms
  88.   [INFO] 17:30:59 #000065AE                 handle_manager.c:180   __set_sleep_amount_ms                            Client service interval: 5000ms is < current service interval of: 300000ms, signalling manager
  89.   [INFO] 17:30:59 #000065AE                 handle_manager.c:157   __service_handle_type                            Service end: SWCLT Session - SWCLT Session - SWCLT Session - SWCLT Session - SWCLT Session - SWCLT Session - SWCLT Session - SWCLT Session - SWCLT Session -
  90.   [INFO] 17:30:59 #000065AE                 handle_manager.c:162   __service_handle_type                            Service manager serviced: 1 handles of type: Session
  91.   [INFO] 17:30:59 #000065AE                 handle_manager.c:147   __service_handle_type                            Service manager enumerating handles of type: Websocket
  92.   [INFO] 17:30:59 #000065AE                 handle_manager.c:162   __service_handle_type                            Service manager serviced: 0 handles of type: Websocket
  93.   [INFO] 17:30:59 #000065AE                 handle_manager.c:238   __manager_loop                                   Manager sleeping for service in: 3000ms
  94.   [INFO] 17:31:02 #000065AE                 handle_manager.c:244   __manager_loop                                   Manager timed out waiting for 3000ms
  95.   [INFO] 17:31:02 #000065AE                 handle_manager.c:147   __service_handle_type                            Service manager enumerating handles of type: Connection
  96.   [INFO] 17:31:02 #000065AE                 handle_manager.c:162   __service_handle_type                            Service manager serviced: 0 handles of type: Connection
  97.   [INFO] 17:31:02 #000065AE                 handle_manager.c:147   __service_handle_type                            Service manager enumerating handles of type: Session
  98.   [INFO] 17:31:02 #000065AE                 handle_manager.c:155   __service_handle_type                            Service begin: SWCLT Session - SWCLT Session - SWCLT Session - SWCLT Session - SWCLT Session - SWCLT Session - SWCLT Session - SWCLT Session - SWCLT Session - SWCLT Session -
  99.   [INFO] 17:31:02 #000065AE                        session.c:214   __do_connect                                     Session is performing connect
  100.   [INFO] 17:31:02 #000065AE                        session.c:221   __do_connect                                     FAILED TO SETUP SSL: 21
  101.   [INFO] 17:31:02 #000065AE                 handle_manager.c:112   __service_handle                                 State change attempt (Normal=>Online) failed (21) re-queueing in: 5000ms
  102.   [INFO] 17:31:02 #000065AE                   handle_state.c:233   __swclt_hstate_initiate_change_in                Handle: Normal is initiating state change (state change: Online=>SWCLT Session - SWCLT Session - SWCLT Session - SWCLT Session - SWCLT Session - SWCLT Session - SWCLT Session - SWCLT Session - SWCLT Session - SWCLT Session - SWCLT Session - ) in: 5000ms
  103.   [INFO] 17:31:02 #000065AE                 handle_manager.c:314   swclt_hmgr_request_service_in                    Handle: SWCLT Session - SWCLT Session - SWCLT Session - SWCLT Session - SWCLT Session - SWCLT Session - SWCLT Session - SWCLT Session - SWCLT Session - SWCLT Session - SWCLT Session - SWCLT Session -  is requesting manager service in: 5000ms
  104.   [INFO] 17:31:02 #000065AE                 handle_manager.c:180   __set_sleep_amount_ms                            Client service interval: 5000ms is < current service interval of: 300000ms, signalling manager
  105.   [INFO] 17:31:02 #000065AE                 handle_manager.c:157   __service_handle_type                            Service end: SWCLT Session - SWCLT Session - SWCLT Session - SWCLT Session - SWCLT Session - SWCLT Session - SWCLT Session - SWCLT Session - SWCLT Session - SWCLT Session - SWCLT Session - SWCLT Session - SWCLT Session -
  106.   [INFO] 17:31:02 #000065AE                 handle_manager.c:162   __service_handle_type                            Service manager serviced: 1 handles of type: Session
  107.   [INFO] 17:31:02 #000065AE                 handle_manager.c:147   __service_handle_type                            Service manager enumerating handles of type: Websocket
  108.   [INFO] 17:31:02 #000065AE                 handle_manager.c:162   __service_handle_type                            Service manager serviced: 0 handles of type: Websocket
  109.   [INFO] 17:31:02 #000065AE                 handle_manager.c:238   __manager_loop                                   Manager sleeping for service in: 3000ms
  110.   [INFO] 17:31:05 #000065AE                 handle_manager.c:244   __manager_loop