writeBytes hanging on SSL connection?

Discussion in 'Java' started by Joshua Jung, Oct 4, 2006.

  1. Joshua Jung

    Joshua Jung Guest

    I currently have what I once thought was working code for an SSL
    client/server connection.

    Its simple, straightforward "from-the-book" code, but for some reason,
    whenever I try to send something from the server socket's data stream to
    the client, the writeBytes (or writeUTF) method hangs. It's like its
    blocking waiting for something.

    To make things weirder, the client can send any data to the server just
    fine.

    Why would writeUTF or writeBytes hang like that?

    Josh <><
    Joshua Jung, Oct 4, 2006
    #1
    1. Advertising

  2. Joshua Jung

    EJP Guest

    Write on any socket will block if the reader isn't reading, once you
    have filled up the socket send buffer.
    EJP, Oct 5, 2006
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. 620
    Replies:
    2
    Views:
    983
    Murat Tunaboylu
    Jan 6, 2004
  2. CW
    Replies:
    2
    Views:
    502
  3. Silviu Tudoras

    Moving from an SSL to an non-SSL connection

    Silviu Tudoras, Jul 25, 2003, in forum: ASP .Net Security
    Replies:
    1
    Views:
    125
    Michal A. Valasek
    Jul 25, 2003
  4. Terry Reedy
    Replies:
    0
    Views:
    209
    Terry Reedy
    Jun 24, 2012
  5. Terry Reedy
    Replies:
    0
    Views:
    289
    Terry Reedy
    Jun 25, 2012
Loading...

Share This Page