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#
  4. Sockets Broken ??

Sockets Broken ??

Scheduled Pinned Locked Moved C#
helpquestioncsharpc++sysadmin
3 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.
  • L Offline
    L Offline
    Lost User
    wrote on last edited by
    #1

    Hello Has anyone experienced problem with the Socket class ?? That is when I'm sending async data then when I have sent more than 2200 bytes then the socket will never close correctly even if I do m_sock.Shutdown(SocketShutdown.Both); m_sock.Close(); That is the .NET will think it closed but the server on the other end will never see that it closed. (Yes the server is working correctly, and detects closing from C++ and old VB) I have downloading working fine with the .NET socket. But always when uploading then the closing procedure wont work when total bytes sent are greater than 2200 bytes, and it does not seem to mater if I send it all at once or in parts. So the question here is if anyone else has this problem, and if this is a known issue ?

    J 1 Reply Last reply
    0
    • L Lost User

      Hello Has anyone experienced problem with the Socket class ?? That is when I'm sending async data then when I have sent more than 2200 bytes then the socket will never close correctly even if I do m_sock.Shutdown(SocketShutdown.Both); m_sock.Close(); That is the .NET will think it closed but the server on the other end will never see that it closed. (Yes the server is working correctly, and detects closing from C++ and old VB) I have downloading working fine with the .NET socket. But always when uploading then the closing procedure wont work when total bytes sent are greater than 2200 bytes, and it does not seem to mater if I send it all at once or in parts. So the question here is if anyone else has this problem, and if this is a known issue ?

      J Offline
      J Offline
      James T Johnson
      wrote on last edited by
      #2

      Are you using a Beta or RC of (VS).NET? There was a known bug in the Betas/RC where the Socket.Close function didn't close the socket. If you want the full details search the DOTNET archives. With it being such a large bug I would assume that it has been fixed in the final versions. James Sonork: Hasaki "I left there in the morning with their God tucked underneath my arm their half-assed smiles and the book of rules. So I asked this God a question and by way of firm reply, He said - I'm not the kind you have to wind up on Sundays." "Wind Up" from Aqualung, Jethro Tull 1971

      L 1 Reply Last reply
      0
      • J James T Johnson

        Are you using a Beta or RC of (VS).NET? There was a known bug in the Betas/RC where the Socket.Close function didn't close the socket. If you want the full details search the DOTNET archives. With it being such a large bug I would assume that it has been fixed in the final versions. James Sonork: Hasaki "I left there in the morning with their God tucked underneath my arm their half-assed smiles and the book of rules. So I asked this God a question and by way of firm reply, He said - I'm not the kind you have to wind up on Sundays." "Wind Up" from Aqualung, Jethro Tull 1971

        L Offline
        L Offline
        Lost User
        wrote on last edited by
        #3

        Hello James Thanks for the answer I get this both on Studio B2 and Studio Final SP1

        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