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. Advertisements

  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. Advertisements

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:
    1,253
    Murat Tunaboylu
    Jan 6, 2004
  2. CW
    Replies:
    2
    Views:
    736
  3. Sean Wolfe
    Replies:
    1
    Views:
    2,556
    Joerg Jooss
    Apr 28, 2005
  4. emukang
    Replies:
    0
    Views:
    3,266
    emukang
    Dec 20, 2005
  5. Matti Kiviharju

    Problem with SSL (Newbie with SSL)

    Matti Kiviharju, Jan 14, 2005, in forum: HTML
    Replies:
    0
    Views:
    488
    Matti Kiviharju
    Jan 14, 2005
  6. Krzysztof Pa¼
    Replies:
    1
    Views:
    871
    Krzysztof Pa¼
    Sep 26, 2003
  7. Robert
    Replies:
    2
    Views:
    2,253
    Robert
    Jun 10, 2004
  8. Silviu Tudoras

    Moving from an SSL to an non-SSL connection

    Silviu Tudoras, Jul 25, 2003, in forum: ASP .Net Security
    Replies:
    1
    Views:
    244
    Michal A. Valasek
    Jul 25, 2003
Loading...