Commits

Ruslan Osmanov committed fc8198e

Fix: With OPT_LEAVE_SOCKETS_BLOCKING flag EventListener::__construct turned fd to non-blocking mode

Comments (0)

Files changed (2)

classes/listener.c

 			return;
 		}
 
-		/* Make sure that the socket is in non-blocking mode(libevent's tip) */
-		evutil_make_socket_nonblocking(fd);
+		if (flags & ~LEV_OPT_LEAVE_SOCKETS_BLOCKING) {
+			/* Make sure that the socket is in non-blocking mode(libevent's tip) */
+			evutil_make_socket_nonblocking(fd);
+		}
 
 		PHP_EVENT_FETCH_LISTENER(l, zself);
 
     <email>osmanov@php.net</email>
     <active>yes</active>
   </lead>
-  <date>2013-03-02</date>
+  <date>2013-03-03</date>
   <!--{{{ Current version -->
   <version>
     <release>1.2.7</release>
   <notes><![CDATA[
   Fix: possible memory access violations in EventBufferEvent input/output property handlers
   Change: Event::$timer_pending property removed; generic Event::$pending property added
+  Fix: With OPT_LEAVE_SOCKETS_BLOCKING flag EventListener::__construct turned fd to non-blocking mode
   ]]></notes>
   <!--}}}-->
   <!--{{{ Contents -->
   </extsrcrelease>
   <!--{{{ changelog-->
   <changelog>
-    <!--{{{ Current version -->
+    <!--{{{ 1.2.7-beta-->
     <release>
       <version>
         <release>1.2.7</release>
       <notes><![CDATA[
   Fix: possible memory access violations in EventBufferEvent input/output property handlers
   Change: Event::$timer_pending property removed; generic Event::$pending property added
+  Fix: With OPT_LEAVE_SOCKETS_BLOCKING flag EventListener::__construct turned fd to non-blocking mode
   ]]></notes>
     </release>
     <!--}}}-->
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.