Skip to content

Commit

Permalink
Add Description to JAPI_TcpKeepAliveFunctionality unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael-M-Baron committed Nov 6, 2024
1 parent 866223d commit 12cd288
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions test/japi_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -615,6 +615,13 @@ static void *serverThread(void *arg)

TEST(JAPI, JAPI_TcpKeepAliveFunctionality)
{
/* Testing TCP-Keep-Alive functionality: Set max number of clients to 1, set
* keep-alive settings and setup a JAPI server. First client is going to connect,
* send data disconnects and disconnects ungracefully. When the TCP keep-alive works
* the ungraceful disconnected client will be closed after the configured interval.
* Client 2 should then be able to connect and send data (Will not be possible when
* client1 socket still is alive since max number of clients is restricted to 1).
* */
japi_context *ctx;

ctx = japi_init(NULL);
Expand Down

0 comments on commit 12cd288

Please sign in to comment.