Hi,
Been trying to use Naviserver's ns_sendmail for the first time.
By default, speaking to localhost:25 (under Debian) I'm getting a
"Operation now in progress" error at the point where ns_sockopen is called
against localhost:25.
I modified the code to use the -nonblock switch (just as an experiment
rather than anything else) and it now works for me.
Is this something that's just peculiar to my environment?
<--------->
diff -r 7dd17a2cf070 tcl/sendmail.tcl
--- a/tcl/sendmail.tcl Mon Aug 03 19:02:11 2015 +0200
+++ b/tcl/sendmail.tcl Thu Oct 15 17:21:02 2015 +0100
@@ -254,7 +254,7 @@
set smtphost [ns_config -set ns/parameters mailhost "localhost"]
}
- set fds [ns_sockopen -timeout $timeout $smtphost $smtpport]
+ set fds [ns_sockopen -nonblock $smtphost $smtpport]
set rfd [lindex $fds 0]
set wfd [lindex $fds 1]
<------------>
--
David
------------------------------------------------------------------------------
_______________________________________________
naviserver-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/naviserver-devel