Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Socket Ping vs Connect Performance

Socket Ping vs Connect Performance

Scheduled Pinned Locked Moved C / C++ / MFC
visual-studiosysadminperformancequestion
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • O Offline
    O Offline
    od ananzi co za
    wrote on last edited by
    #1

    Hi All, We have quite about 30 clients connecting to about 200 servers on our WAN. Currently we are experiencing extremely slow connection establishment times, in the order of 15-20 seconds. However, a ping from a client to the same server responds in 1-2 seconds. The client and server applications are based on WSASocket. I have traced the client and server side applications to death and it seams that the delay is in the receiving of the FD_ACCEPT event. Once the event has been received and the connections established, all seems fine, but it takes an unusually long time for the event to be received (through WSAEnumNetworkEvents). Are there any reasons for the connection establishment to take SOOOO long, while a ping goes through quite quickly ? Thanks OD

    M 1 Reply Last reply
    0
    • O od ananzi co za

      Hi All, We have quite about 30 clients connecting to about 200 servers on our WAN. Currently we are experiencing extremely slow connection establishment times, in the order of 15-20 seconds. However, a ping from a client to the same server responds in 1-2 seconds. The client and server applications are based on WSASocket. I have traced the client and server side applications to death and it seams that the delay is in the receiving of the FD_ACCEPT event. Once the event has been received and the connections established, all seems fine, but it takes an unusually long time for the event to be received (through WSAEnumNetworkEvents). Are there any reasons for the connection establishment to take SOOOO long, while a ping goes through quite quickly ? Thanks OD

      M Offline
      M Offline
      Moak
      wrote on last edited by
      #2

      Sounds strange, maybe your routers do some traffic shaping or you hit a bottleneck in your network infrastructure. I would try to send more dummy data with the connection handshake (to see if that has a negative or positive impact), plus try another listening port number. /M

      My Webchat in Europe :java:

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups