فهرست منبع

blind-fixed (?) not-bailing on initial handshake timeout; fixed a warning in test.php


git-svn-id: svn://svn.sphinxsearch.com/sphinx/trunk@2903 406a0c4d-033a-0410-8de8-e80135713968
shodan 14 سال پیش
والد
کامیت
98d7baae32
2فایلهای تغییر یافته به همراه8 افزوده شده و 0 حذف شده
  1. 1 0
      api/test.php
  2. 7 0
      src/searchd.cpp

+ 1 - 0
api/test.php

@@ -58,6 +58,7 @@ $filter = "group_id";
 $filtervals = array();
 $distinct = "";
 $sortby = "";
+$sortexpr = "";
 $limit = 20;
 $ranker = SPH_RANK_PROXIMITY_BM25;
 $select = "";

+ 7 - 0
src/searchd.cpp

@@ -9322,7 +9322,14 @@ void HandleClientSphinx ( int iSock, const char * sClientIP, ThdDesc_t * pThd )
 	// get client version and request
 	tBuf.ReadFrom ( 4 ); // FIXME! magic
 	int iMagic = tBuf.GetInt (); // client version is for now unused
+
 	sphLogDebugv ( "conn %s: got handshake, major v.%d, err %d", sClientIP, iMagic, (int)tBuf.GetError() );
+	if ( tBuf.GetError() )
+	{
+		sphLogDebugv ( "conn %s: exiting on handshake error", sClientIP );
+		return;
+	}
+
 	int iPconnIdle = 0;
 	do
 	{