login about faq

a simple socket application without ssl. Server listens on port, accepts connections and for each creating a thread. client opens a few threads, each connects to Server. Then

(a) each client sends ONCE a packet<length and="" bytes="">

(b) matched server thread sends it back

(c) each client thread reads the bytes,

ONE Send-Reply, nothing else and all the comminication is running as expoected.

But after calling CkSocket_Close( F_sock, 10000) in the server, it hangs for 10 sec. please why doesn't it return immediatly ? Have I something forgotten to do ?

if i use CkSocket_Close( F_sock, 1) to force this will I get other problems ?

asked Feb 03 '17 at 15:14

kami's gravatar image


Be the first one to answer this question!
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or __italic__
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported



Asked: Feb 03 '17 at 15:14

Seen: 973 times

Last updated: Feb 03 '17 at 15:14

powered by OSQA