User "IAlex" posted a comment on MediaWiki.r97328.

Full URL: http://www.mediawiki.org/wiki/Special:Code/MediaWiki/97328#c22851
Commit summary:

Noticed in apache error logs (see below). If the length of the message is 
longer than the maximum length, only send what will fit

Sep 16 20:07:28 10.0.2.193 apache2[28441]: PHP Warning:  socket_sendto() [<a 
href='function.socket-sendto'>function.socket-sendto</a>]: unable to write to 
socket [90]: Message too long in 
/home/wikipedia/common/php-1.17-test/includes/GlobalFunctions.php on line 464
Sep 16 20:07:29 10.0.2.193 apache2[26511]: PHP Warning:  socket_sendto() [<a 
href='function.socket-sendto'>function.socket-sendto</a>]: unable to write to 
socket [90]: Message too long in 
/home/wikipedia/common/php-1.17-test/includes/GlobalFunctions.php on line 464

Comment:

Now I'm getting
<br /><br />
<b>Warning</b>:  socket_get_option() [function.socket-get-option]: unable to 
retrieve socket option [42]: Protocol not available in 
<b>includes/GlobalFunctions.php</b> on line <b>872</b><br />
<b>Warning</b>:  socket_sendto() [function.socket-sendto]: unable to write to 
socket [22]: Invalid argument in <b>includes/GlobalFunctions.php</b> on line 
<b>877</b><br /><br />

Replacing <code>SOL_UDP</code> by <code>SOL_SOCKET</code> in 
<code>socket_get_option()</code> fixes the problem.

_______________________________________________
MediaWiki-CodeReview mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-codereview

Reply via email to