Mercurial Hosting > luan
comparison src/goodjava/webserver/ServerSentEvents.java @ 1741:623d9f62ab92
minor
| author | Franklin Schmidt <fschmidt@gmail.com> |
|---|---|
| date | Fri, 04 Nov 2022 10:03:12 -0600 |
| parents | c9c974817d0c |
| children | d778f1f2598a |
comparison
equal
deleted
inserted
replaced
| 1740:c9c974817d0c | 1741:623d9f62ab92 |
|---|---|
| 45 try { | 45 try { |
| 46 writer.write(content); | 46 writer.write(content); |
| 47 writer.write("\n\n"); | 47 writer.write("\n\n"); |
| 48 writer.flush(); | 48 writer.flush(); |
| 49 } catch(IOException e) { | 49 } catch(IOException e) { |
| 50 //logger.info("removing con from "+url); | |
| 50 iter.remove(); | 51 iter.remove(); |
| 52 try { | |
| 53 con.socket.close(); | |
| 54 } catch(IOException e2) { | |
| 55 //logger.info("",e2); | |
| 56 } | |
| 51 } | 57 } |
| 52 } | 58 } |
| 53 if( cons.isEmpty() ) { | 59 if( cons.isEmpty() ) { |
| 54 map.remove(url); | 60 map.remove(url); |
| 55 //logger.info("removed "+url); | 61 //logger.info("removed "+url); |
