Index: test/regress_http.c
===================================================================
--- test/regress_http.c	(revision 309)
+++ test/regress_http.c	(working copy)
@@ -595,6 +595,28 @@
 }
 
 void
+http_highport_test(void)
+{
+	int i = -1;
+	struct evhttp *myhttp = NULL;
+ 
+	fprintf(stdout, "Testing HTTP Server with high port: ");
+
+	/* Try a few different ports */
+	for (i = 0; i < 50; ++i) {
+		myhttp = evhttp_start("127.0.0.1", 65535 - i);
+		if (myhttp != NULL) {
+			fprintf(stdout, "OK\n");
+			evhttp_free(myhttp);
+			return;
+		}
+	}
+
+	fprintf(stdout, "FAILED\n");
+	exit(1);
+}
+
+void
 http_suite(void)
 {
 	http_basic_test();
@@ -603,4 +625,5 @@
 	http_close_detection();
 	http_post_test();
 	http_failure_test();
+	http_highport_test();
 }
