Changeset 19241
- Timestamp:
- 2009-04-23T18:44:02+12:00 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
greenstone3/trunk/src/java/org/greenstone/server/Server2.java
r19022 r19241 22 22 public class Server2 extends BaseServer 23 23 { 24 private static final int WAITING_TIME = 60; // time to wait and check for whether the server is running 25 24 26 protected String libraryURL; 25 27 … … 36 38 37 39 public void run() { 38 // Server2.this.recordSuccess("In QuitListener.run()");39 40 40 Socket connection = null; 41 41 … … 43 43 // wait for a connection 44 44 connection = serverSocket.accept(); 45 46 ///Server2.this.recordSuccess("In QuitListener - accepted connection");47 45 48 46 // read input … … 51 49 String line = null; 52 50 if((line = reader.readLine()) != null) { 53 // Server2.this.recordSuccess("In QuitListener - Got a line");54 51 if(line.equals("QUIT")) { 55 52 // Server2.this.recordSuccess("In QuitListener - line is QUIT"); … … 269 266 270 267 boolean ready = false; 271 for(int i = 0; i < 60&& !ready; i++) {268 for(int i = 0; i < WAITING_TIME && !ready; i++) { 272 269 try { 273 270 libURL.openConnection();
Note:
See TracChangeset
for help on using the changeset viewer.