Re: socket.recvline() and file_utime()ã By: Digital Man to MCMLXXIX on Thu Mar 11 2010 15:12:08ãã > Re: socket.recvline() and file_utime()ã > By: MCMLXXIX to Digital Man on Thu Mar 11 2010 01:22 pmã > ã > > file_touch("test.txt");ã > > log("original mod_time: " + file_date("test.txt"));ã > > log("changing file mod_time to 1267455497");ã > > file_utime("test.txt",1267455497,1267455497);ã > > log("new file mod_time: " + file_date("test.txt"));ã > > file_remove("test.txt");ã > >ã > > OUTPUT:ã > >ã > > 3/11 01:10:51p Node 1 original mod_time: 1268331052ã > > 3/11 01:10:51p Node 1 changing file mod_time to 1267455497ã > > 3/11 01:10:51p Node 1 new file mod_time: 1267455498ã > >ã > > It's driving me insane.. doesn't make senseã > ã > What filesystem is "test.txt" being stored on? Some filesystems (e.g. FAT,ã > FAT32) only support 2-second granularity for file date/times.ã > ã > Here's a Microsoft article on the subject:ã > ã >
http://msdn.microsoft.com/en-us/library/ms724290%28VS.85%29.aspxã > ã > ã > > ----------------------------------------------------ã > >ã > > var sock=new Socket();ã > > sock.bind(10088);ã > ã > Don't bind specific port numbers for outbound connections (as we discussed).ã > ã > > sock.connect("localhost",25);ã > > log(time());ã > > log("connected: " + sock.is_connected);ã > > log("nonblocking: " + sock.nonblocking);ã > >ã > > OUTPUT:ã > >ã > > 3/11 01:19:09p Node 2 1268331549ã > > 3/11 01:19:09p Node 2 connected: trueã > > 3/11 01:19:09p Node 2 nonblocking: falseã > > 3/11 01:19:10p Node 2 nullã > > 3/11 01:19:10p Node 2 1268331550ã > >ã > > -------------------------ã > > also driving me insane..ã > >ã > > does anyone have an insight on these things?ã > >ã > > unless I'm missing something, the sock.recvline() should wait 10 secondsã > > before moving on, but it doesnt.ã > ã > I guess you didn't paste all your code - there was no call to recvline() theã > ã > digital manã > ã ãturns out I was wrong anyway.. surprise surprise!ã though I still can't duplicate that actual example. I swear it happened ãããã---ã þ Synchronet þ The BRoKEN BuBBLE (MDJ.ATH.CX)ã