|  | @@ -8260,7 +8260,13 @@ static int set_ports_option(struct mg_context *ctx)
 | 
											
												
													
														|  |  			            * if someone already has the socket -- DTL */
 |  |  			            * if someone already has the socket -- DTL */
 | 
											
												
													
														|  |  			           setsockopt(so.sock,
 |  |  			           setsockopt(so.sock,
 | 
											
												
													
														|  |  			                      SOL_SOCKET,
 |  |  			                      SOL_SOCKET,
 | 
											
												
													
														|  | -			                      SO_REUSEADDR /* TODO(high): check with unit test -> SO_EXCLUSIVEADDRUSE */,
 |  | 
 | 
											
												
													
														|  | 
 |  | +			                      /* TODO (high): unit test only works with
 | 
											
												
													
														|  | 
 |  | +			                       * SO_REUSEADDR, but not with
 | 
											
												
													
														|  | 
 |  | +			                       * SO_EXCLUSIVEADDRUSE. Maybe connection
 | 
											
												
													
														|  | 
 |  | +			                       * open/close is too fast in unit_test.c
 | 
											
												
													
														|  | 
 |  | +			                       * ==> needs to be checked
 | 
											
												
													
														|  | 
 |  | +			                       */
 | 
											
												
													
														|  | 
 |  | +			                      SO_EXCLUSIVEADDRUSE,
 | 
											
												
													
														|  |  			                      (SOCK_OPT_TYPE)&on,
 |  |  			                      (SOCK_OPT_TYPE)&on,
 | 
											
												
													
														|  |  			                      sizeof(on)) != 0 ||
 |  |  			                      sizeof(on)) != 0 ||
 | 
											
												
													
														|  |  #else
 |  |  #else
 |