#160: set_tcp_nodelay on Unix Domain socket fails.
------------------------+---------------------------------------------------
 Reporter:  jcmdev0     |       Owner:  admin    
     Type:  Bugs        |      Status:  new      
 Priority:  5           |   Milestone:           
Component:  Liquidsoap  |     Version:  0.3.8+svn
 Keywords:              |         Mac:  0        
    Linux:  1           |      Netbsd:  0        
    Other:  0           |     Freebsd:  0        
------------------------+---------------------------------------------------
 Fails on startup with a Unix error.  Simple workaround inline.

 {{{
 Index: liquidsoap/src/tools/server.ml
 ===================================================================
 --- liquidsoap/src/tools/server.ml      (revision 5834)
 +++ liquidsoap/src/tools/server.ml      (working copy)
 @@ -237,7 +237,10 @@
    let max_conn = 10 in
    let sock = socket PF_UNIX SOCK_STREAM 0 in
    (* Set TCP_NODELAY on the socket *)
 -  Liq_sockets.set_tcp_nodelay sock true ;
 +  try
 +    Liq_sockets.set_tcp_nodelay sock true ;
 +  with
 +    | Unix_error (e, _, _) -> ();
    let rec incoming _ =
      begin
        try
 }}}

-- 
Ticket URL: <http://savonet.rastageeks.org/ticket/160>
Savonet <http://savonet.rastageeks.org/>
Let's program our stream !
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Savonet-trac mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/savonet-trac

Reply via email to