This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | log4j.rootLogger=DEBUG, A1 | |
| log4j.appender.A1=org.apache.log4j.ConsoleAppender | |
| log4j.appender.A1.layout=org.apache.log4j.PatternLayout | |
| log4j.appender.A1.layout.ConversionPattern=%-5p %d %c - %m%n | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | package main | |
| type conn struct{} | |
| type connectionMap struct { | |
| connections map[string]*conn | |
| actions chan func() | |
| } | |
| func NewMap() *connectionMap { | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | package main | |
| import ( | |
| "sync" | |
| ) | |
| type conn struct{} | |
| type connectionMap struct { | |
| connections map[string]*conn | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | type connectionStateFn func(*conn) connectionStateFn | |
| func (this *conn) run() { | |
| for state := openConnectionState; state != nil; { | |
| state = state(this) | |
| } | |
| } | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | type httpTransaction struct { | |
| req *http.Request | |
| rw http.ResponseWriter | |
| done chan bool | |
| ... | |
| } | |
| func activeConnectionState(c *conn) connectionStateFn { | |
| select { | |
| ... | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | func (c *conn) activeConnectionGuard(conn_closed <-chan bool) { | |
| for { | |
| select { | |
| case httpTx := <-c.httpTransactions: | |
| httpTx.writePrelude(httpTx.rw) | |
| httpTx.writeClose(httpTx.rw, 2010, "Another connection still open") | |
| httpTx.done <- true | |
| case <-conn_closed: | |
| return | |
| } | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | --- | |
| name: cf | |
| director_uuid: 5fc42e3c-3261-4b56-bba9-228b08963bd6 | |
| release: | |
| name: appcloud | |
| version: 84 | |
| compilation: | |
| workers: 1 | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | --- | |
| name: bosh | |
| director_uuid: a5d6347d-3b66-465f-ae06-2444db70dce3 # update as seen from "bosh status" | |
| release: | |
| name: bosh | |
| version: 5 | |
| networks: | |
| - name: default | |
| subnets: | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | E, [2012-06-29T11:00:55.519258 #2964] [task:8] ERROR -- : reserved IP must be available (not gateway, etc..) inside the range - /var/vcap/packages/director/bosh/director/lib/director/deployment_plan/network_subnet.rb:60:in `block in initialize' | |
| /var/vcap/packages/director/bosh/director/lib/director/ip_util.rb:35:in `block in process_range' | |
| /var/vcap/packages/director/bosh/director/lib/director/ip_util.rb:34:in `each' | |
| /var/vcap/packages/director/bosh/director/lib/director/ip_util.rb:34:in `process_range' | |
| /var/vcap/packages/director/bosh/director/lib/director/ip_util.rb:10:in `block in each_ip' | |
| /var/vcap/packages/director/bosh/director/lib/director/ip_util.rb:9:in `each' | |
| /var/vcap/packages/director/bosh/director/lib/director/ip_util.rb:9:in `each_ip' | |
| /var/vcap/packages/director/bosh/director/lib/director/deployment_plan/network_subnet.rb:58:in `initialize' | |
| /var/vcap/packages/director/bosh/director/lib/director/deployment_plan/manual_network.rb:22:in `new' | |
| /var/vcap/packages/director/bosh/director/lib/director/d | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | name: micro_bosh | |
| network: | |
| ip: 192.168.2.120 | |
| netmask: 255.255.255.0 | |
| gateway: 192.168.2.107 | |
| dns: | |
| - 192.168.2.107 | |
| cloud_properties: | |
| name: VMNet | |
| env: |