{"action":"created","issue":{"url":"https://api.github.com/repos/sctplab/usrsctp/issues/244","repository_url":"https://api.github.com/repos/sctplab/usrsctp","labels_url":"https://api.github.com/repos/sctplab/usrsctp/issues/244/labels{/name}","comments_url":"https://api.github.com/repos/sctplab/usrsctp/issues/244/comments","events_url":"https://api.github.com/repos/sctplab/usrsctp/issues/244/events","html_url":"https://github.com/sctplab/usrsctp/issues/244","id":341147778,"node_id":"MDU6SXNzdWUzNDExNDc3Nzg=","number":244,"title":"Software Threading Model of usrsctp","user":{"login":"rezaetemadi","id":18598898,"node_id":"MDQ6VXNlcjE4NTk4ODk4","avatar_url":"https://avatars2.githubusercontent.com/u/18598898?v=4","gravatar_id":"","url":"https://api.github.com/users/rezaetemadi","html_url":"https://github.com/rezaetemadi","followers_url":"https://api.github.com/users/rezaetemadi/followers","following_url":"https://api.github.com/users/rezaetemadi/following{/other_user}","gists_url":"https://api.github.com/users/rezaetemadi/gists{/gist_id}","starred_url":"https://api.github.com/users/rezaetemadi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rezaetemadi/subscriptions","organizations_url":"https://api.github.com/users/rezaetemadi/orgs","repos_url":"https://api.github.com/users/rezaetemadi/repos","events_url":"https://api.github.com/users/rezaetemadi/events{/privacy}","received_events_url":"https://api.github.com/users/rezaetemadi/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2018-07-13T20:20:16Z","updated_at":"2018-07-25T19:04:56Z","closed_at":null,"author_association":"NONE","body":"Hello \r\n\r\nI am running discard_server.c and client.c.\r\nDo you know what is the threading model on the server side? Looks like many threads are\r\ncreated on the server. What is the function of each of these thread? which thread is used for\r\nconfiguration and which ones belong to main data path?\r\n\r\nIs there a document showing the software architecture of usrsctp?\r\n\r\nReza"},"comment":{"url":"https://api.github.com/repos/sctplab/usrsctp/issues/comments/407862035","html_url":"https://github.com/sctplab/usrsctp/issues/244#issuecomment-407862035","issue_url":"https://api.github.com/repos/sctplab/usrsctp/issues/244","id":407862035,"node_id":"MDEyOklzc3VlQ29tbWVudDQwNzg2MjAzNQ==","user":{"login":"tuexen","id":62450,"node_id":"MDQ6VXNlcjYyNDUw","avatar_url":"https://avatars1.githubusercontent.com/u/62450?v=4","gravatar_id":"","url":"https://api.github.com/users/tuexen","html_url":"https://github.com/tuexen","followers_url":"https://api.github.com/users/tuexen/followers","following_url":"https://api.github.com/users/tuexen/following{/other_user}","gists_url":"https://api.github.com/users/tuexen/gists{/gist_id}","starred_url":"https://api.github.com/users/tuexen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tuexen/subscriptions","organizations_url":"https://api.github.com/users/tuexen/orgs","repos_url":"https://api.github.com/users/tuexen/repos","events_url":"https://api.github.com/users/tuexen/events{/privacy}","received_events_url":"https://api.github.com/users/tuexen/received_events","type":"User","site_admin":false},"created_at":"2018-07-25T19:04:56Z","updated_at":"2018-07-25T19:04:56Z","author_association":"MEMBER","body":"The thread ids are dynamically generated, much like pids. Depending on the system you are using, I assigned names to the threads where possible. If your system has a tool to show all threads of a process it might display the names and the corresponding thread id.\r\n\r\nIf I run the discard server on FreeBSD with pid 57756, I get\r\n```\r\ntuexen@bsd15:~ % procstat -t 57756\r\n  PID    TID COMM                TDNAME              CPU  PRI STATE   WCHAN    \r\n57756 100155 discard_server      -                    -1  123 sleep   uwait     \r\n57756 100171 discard_server      SCTP iterator        -1  122 sleep   uwait     \r\n57756 100172 discard_server      SCTP addr mon        -1  120 sleep   sbwait    \r\n57756 100173 discard_server      SCTP/IP4 rcv         -1  120 sleep   sbwait    \r\n57756 100174 discard_server      SCTP/IP6 rcv         -1  120 sleep   sbwait    \r\n57756 100175 discard_server      SCTP timer           -1  120 sleep   select    \r\n```\r\n\r\nBest regards\r\nMichael"}}
{"actor":{"display_login":"tuexen"}}